Commit ea188729d804b4b51bebea80c6e4266b98db4cdf

Martin Mitas 2021-07-15T18:58:39

Emit '\n' after the XHTML root tag. Fixes #163.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md2html/md2html.c b/md2html/md2html.c
index 40bc68f..c959bfc 100644
--- a/md2html/md2html.c
+++ b/md2html/md2html.c
@@ -156,7 +156,7 @@ process_file(FILE* in, FILE* out)
             fprintf(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
             fprintf(out, "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" "
                             "\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n");
-            fprintf(out, "<html xmlns=\"http://www.w3.org/1999/xhtml\">");
+            fprintf(out, "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
         } else {
             fprintf(out, "<!DOCTYPE html>\n");
             fprintf(out, "<html>\n");