summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgottox@rootkit.lan <gottox@rootkit.lan>2007-12-12 01:02:44 +0100
committergottox@rootkit.lan <gottox@rootkit.lan>2007-12-12 01:02:44 +0100
commit1f01809f7c8da80adeccc753f9544969ad027f9d (patch)
treecf27a5a1784550377e71373ca21b704adeddb609
parent97edae20653ed73cf83b249f518c63ea6a00e985 (diff)
Fixed small bug in dolist
-rw-r--r--cmarkdown.c4
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>");