diff options
author | wrmr | 2025-03-10 14:47:11 -0500 |
---|---|---|
committer | wrmr | 2025-03-10 14:47:11 -0500 |
commit | 4636e9fbcc848297f3e408e5250ccc0a0615bbd2 (patch) | |
tree | c716e45df4ba0ceec40195d06b4a4f073bc4d289 | |
parent | cf867034323b72a1fab1b516cc693667b92d875a (diff) |
fix: don't strip off first character of title
-rw-r--r-- | main.c | 2 |
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); } |