public
Description: An implementation of markdown in C, using a PEG grammar
Clone URL: git://github.com/jgm/peg-markdown.git
Search Repo:
Fixed padding at end of HTML output (esp. if no endnotes).
jgm (author)
Thu May 15 15:27:51 -0700 2008
commit  d27fc3667b20f4888b81a2b074e1888529682516
tree    417f3e208291318408299908b11115b35516fca7
parent  2b0311d5ebe7a458de5cd726b12303af5489ebf0
...
296
297
298
299
 
300
301
302
...
740
741
742
743
744
 
 
 
 
745
746
747
...
296
297
298
 
299
300
301
302
...
740
741
742
 
 
743
744
745
746
747
748
749
0
@@ -296,7 +296,7 @@
0
         endnotes = endnotes->next;
0
     }
0
     pad(1);
0
- printf("</ol>\n");
0
+ printf("</ol>");
0
 }
0
 
0
 /**********************************************************************
0
@@ -740,8 +740,10 @@
0
     switch (format) {
0
     case HTML_FORMAT:
0
         print_html_element(elt, false);
0
- pad(2);
0
- print_html_endnotes(endnotes);
0
+ if (endnotes != NULL) {
0
+ pad(2);
0
+ print_html_endnotes(endnotes);
0
+ }
0
         break;
0
     case LATEX_FORMAT:
0
         print_latex_element(elt);

Comments

    No one has commented yet.