diff options
| author | gottox@rootkit.lan <gottox@rootkit.lan> | 2007-12-12 01:02:44 +0100 |
|---|---|---|
| committer | gottox@rootkit.lan <gottox@rootkit.lan> | 2007-12-12 01:02:44 +0100 |
| commit | 1f01809f7c8da80adeccc753f9544969ad027f9d (patch) | |
| tree | cf27a5a1784550377e71373ca21b704adeddb609 /cmarkdown.c | |
| parent | 97edae20653ed73cf83b249f518c63ea6a00e985 (diff) | |
Fixed small bug in dolist
Diffstat (limited to 'cmarkdown.c')
| -rw-r--r-- | cmarkdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmarkdown.c b/cmarkdown.c index 352cfeb..d708574 100644 --- a/cmarkdown.c +++ b/cmarkdown.c @@ -237,11 +237,11 @@ dolist(const char *begin, const char *end) { if(p[1] == '\n') { run = 0; buffer[i++] = '\n'; - buffer[i++] = '\n'; p++; } if(p[1] == ' ') { run = 1; + buffer[i++] = '\n'; p += indent + 1; } else if(p[1] >= '0' && p[1] <= '9' || strchr("+-*",p[1])) { @@ -257,7 +257,7 @@ dolist(const char *begin, const char *end) { buffer[i] = '\0'; while(buffer[--i] == '\n') buffer[i] = '\0'; fputs("<li>",stdout); - process(buffer,i+2+buffer); + hprint(buffer,i+2+buffer); fputs("</li>\n",stdout); } puts(ul ? "</ul>" : "</ol>"); |