Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Brought peg-markdown submodule and associated files in ext up to date.
This fixes a bug which caused extra blank lines to be inserted
at the beginning of converted text.
  • Loading branch information
jgm committed Aug 8, 2008
1 parent 72d557e commit 16858b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ext/markdown_lib.h
Expand Up @@ -3,10 +3,10 @@
#include <glib.h>

enum markdown_extensions {
EXT_SMART = 0x1,
EXT_NOTES = 0x2,
EXT_FILTER_HTML = 0x4,
EXT_FILTER_STYLES = 0x8
EXT_SMART = 0x01,
EXT_NOTES = 0x02,
EXT_FILTER_HTML = 0x04,
EXT_FILTER_STYLES = 0x08
};

enum markdown_formats {
Expand Down
1 change: 1 addition & 0 deletions ext/markdown_output.c
Expand Up @@ -734,6 +734,7 @@ static void print_groff_mm_element(GString *out, element *elt, int count) {

void print_element_list(GString *out, element *elt, int format, int exts) {
extensions = exts;
padded = 2; /* set padding to 2, so no extra blank lines at beginning */
switch (format) {
case HTML_FORMAT:
print_html_element_list(out, elt, false);
Expand Down
2 changes: 1 addition & 1 deletion peg-markdown
Submodule peg-markdown updated 4 files
+2 −0 README.markdown
+2 −3 markdown.c
+4 −4 markdown_lib.h
+1 −0 markdown_output.c

0 comments on commit 16858b5

Please sign in to comment.