authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-04 14:01:51 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-05-04 14:01:51 -07:00
loge2a928c0a5677ca3fa1a1a9121c71ec56267e422
tree7a3bfcf253cfa998333a40de33d028dbf0ebe6f6
parentdb72cc51c1b21203f4c2b0e690a7d2cab91c2f1f

trim NL from left too of replacements


1 files changed, 1 insertions(+), 1 deletions(-)

src/lib.zig+1-1
...@@ -83,7 +83,7 @@ inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comp...@@ -83,7 +83,7 @@ inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comp
83 try writer.writeAll(x);83 try writer.writeAll(x);
84 return;84 return;
85 }85 }
86 const s = std.mem.trimRight(u8, x, "\n");86 const s = std.mem.trim(u8, x, "\n");
87 try writeEscaped(s, writer);87 try writeEscaped(s, writer);
88 return;88 return;
89 }89 }