summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkatalx2026-02-02 05:30:59 -0500
committerkatalx2026-02-02 05:30:59 -0500
commita41ef7e31d4ee9348fa4d222c27015feff569985 (patch)
treec2dff2897fc4adf4ae618acb3e91818217af0bd5
parent9737033c1a2fccc8a4c0b031e27f7514e49e8d4b (diff)
only trim right of lines
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f210d99..39b37f8 100644
--- a/main.c
+++ b/main.c
@@ -267,7 +267,7 @@ parse_linewise(Doc *d, int (*fn)(Doc *, Str)) {
Str s = d->src;
while (s.n > 0) {
Cut c = str_cut(s, '\n');
- if (fn(d, str_trim(c.head)))
+ if (fn(d, str_trim_right(c.head)))
return -1;
s = c.tail;
}