"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xmlpage.c" between
discount-2.2.4.tar.bz2 and discount-2.2.6.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

xmlpage.c  (discount-2.2.4.tar.bz2):xmlpage.c  (discount-2.2.6.tar.bz2)
skipping to change at line 13 skipping to change at line 13
* *
* Copyright (C) 2007 David L Parsons. * Copyright (C) 2007 David L Parsons.
* The redistribution terms are provided in the COPYRIGHT file that must * The redistribution terms are provided in the COPYRIGHT file that must
* be distributed with this source code. * be distributed with this source code.
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <markdown.h> #include <markdown.h>
int int
mkd_xhtmlpage(Document *p, int flags, FILE *out) mkd_xhtmlpage(Document *p, mkd_flag_t flags, FILE *out)
{ {
char *title; char *title;
extern char *mkd_doc_title(Document *); extern char *mkd_doc_title(Document *);
if ( mkd_compile(p, flags) ) { if ( mkd_compile(p, flags) ) {
DO_OR_DIE( fprintf(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" DO_OR_DIE( fprintf(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE html " "<!DOCTYPE html "
" PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"" " PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict .dtd\">\n" " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict .dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml :lang=\"en\" lang=\"en\">\n") ); "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml :lang=\"en\" lang=\"en\">\n") );
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)