smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit d58759a6f00ab596d7238a22b07395e2d186ec19
parent 0c366f57600669cba8cff413d080f58304073a3f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 11 May 2021 17:59:27 +0200

change it so titles don't require the exact amount bytes/columns of - and =

This would be a bit unintuitive too when using unicode or multiwidth/column
characters in titles.

Diffstat:
Msmu.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smu.c b/smu.c @@ -605,7 +605,7 @@ dounderline(const char *begin, const char *end, int newblock) for (i = 0; i < LENGTH(underline); i++) { for (j = 0; p + j != end && p[j] != '\n' && p[j] == underline[i].search[0]; j++) ; - if (j >= l) { + if (j > 0) { fputs(underline[i].before, stdout); if (underline[i].process) process(begin, begin + l, 0);