aboutsummaryrefslogtreecommitdiff
path: root/src/html/html.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-03 03:40:23 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:15 +0200
commita7314deae649646f1f7ce5ede972641b5b62538c (patch)
treec958536337ab5cbc96d247725e0dd35fdc02b998 /src/html/html.c
parent7e12fdba0c9a444a3cfc29c520e2f2caa57a8232 (diff)
338/103
Diffstat (limited to 'src/html/html.c')
-rw-r--r--src/html/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/html.c b/src/html/html.c
index 2f160ca..27ffe58 100644
--- a/src/html/html.c
+++ b/src/html/html.c
@@ -68,7 +68,7 @@ void blocks_to_html(gh_buf *html, block *b, bool tight)
cr(html);
gh_buf_puts(html, "<li>");
blocks_to_html(html, b->children, tight);
- gh_buf_trim(html);
+ gh_buf_trim(html); /* TODO: rtrim */
gh_buf_puts(html, "</li>");
cr(html);
break;
@@ -106,7 +106,7 @@ void blocks_to_html(gh_buf *html, block *b, bool tight)
cr(html);
gh_buf_puts(html, "<pre><code>");
escape_html(html, b->string_content.ptr, b->string_content.size);
- gh_buf_puts(html, "</pre></code>");
+ gh_buf_puts(html, "</code></pre>");
cr(html);
break;