]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix padding at end of document body in ODF
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Fri, 3 Mar 2017 15:38:45 +0000 (10:38 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Fri, 3 Mar 2017 15:38:45 +0000 (10:38 -0500)
Sources/libMultiMarkdown/odf.c
tests/MMD6Tests/Advanced Fenced Code Blocks.fodt
tests/MMD6Tests/Blockquotes.fodt
tests/MMD6Tests/Code Spans.fodt

index 8d4b0c6d69b32de8013595fe3faf970a65a27675..f7ea55b879457d32b7f2281f31de8c3b1877d02a 100644 (file)
@@ -1026,6 +1026,7 @@ void mmd_start_complete_odf(DString * out, const char * source, scratch_pad * sc
 
 
 void mmd_end_complete_odf(DString * out, const char * source, scratch_pad * scratch) {
+       pad(out, 1, scratch);
        print_const("</office:text>\n</office:body>\n</office:document>");
 }
 
index c08992a60b19a1c985e4f337ef56c1b91e6ec6fe..8ef1242f899107106b7b90ceb10994ebd9c43769 100644 (file)
 
 <text:p text:style-name="Preformatted Text">foo<text:line-break/></text:p>
 
-<text:p text:style-name="Preformatted Text">foo<text:line-break/></text:p></office:text>
+<text:p text:style-name="Preformatted Text">foo<text:line-break/></text:p>
+</office:text>
 </office:body>
 </office:document>
index bb8c76d9f6bafa4d53b801f4f73b051d7450cb42..76142b97b9b99e581859a63c9715bb3d5a5f3345 100644 (file)
@@ -274,6 +274,7 @@ bar
 
 <text:p text:style-name="Preformatted Text">   bar<text:line-break/>foo<text:line-break/></text:p>
 
-<text:p text:style-name="Quotations">bar</text:p></office:text>
+<text:p text:style-name="Quotations">bar</text:p>
+</office:text>
 </office:body>
 </office:document>
index 407e3d88a2c34de3e6fd97921b422ca03b118bf9..b44ab31605bf0c88457696eb472ad992003e4a13 100644 (file)
 
 <text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">-&lt;&gt;--&amp;\&amp;---...</text:span></text:p>
 
-<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">`foo`</text:span></text:p></office:text>
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">`foo`</text:span></text:p>
+</office:text>
 </office:body>
 </office:document>