summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0d10fc6..2fdf5ae 100644
--- a/main.c
+++ b/main.c
@@ -331,7 +331,7 @@ int wdoc(FILE *f, Doc **dp, Arena *perm, Arena *scratch) {
 	BlockList blk = blk_gather(buf, scratch);
 	for (size_t i = 0; i < blk.len; i++) {
 		if (blk.data[i].type == LN_HDR1 && !d->title.s) {
-			d->title = str_trim(str_skip(blk.data[i].lines->txt, 1));
+			d->title = blk.data[i].lines->txt;
 		}
 		str_cat_blk(&d->html, &blk.data[i], perm, scratch);
 	}