commit 1f01809f7c8da80adeccc753f9544969ad027f9d
parent 97edae20653ed73cf83b249f518c63ea6a00e985
Author: gottox@rootkit.lan <gottox@rootkit.lan>
Date: Wed, 12 Dec 2007 01:02:44 +0100
Fixed small bug in dolist
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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>");