Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Cut text between characters, never inside one
The index description was cut at a byte count, which could split a multibyte character and leave an invalid sequence on the page. Commit subjects already backed up to the start of the character, so html_ntxt now does that for every caller.
-rw-r--r--source/html.c6
-rw-r--r--source/html.h5
-rw-r--r--source/ui-shared.c8
-rwxr-xr-xtests/t0101-index.sh14
-rwxr-xr-xtests/t0103-log.sh10
5 files changed, 34 insertions, 9 deletions