summaryrefslogtreecommitdiff
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 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;
}