authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-25 17:08:15 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-25 17:08:15 -07:00
log1736776c117879aa4b0328459893740859e4801c
tree4927512f3d236d4cf7d8a51dfc70bb9e94ef3cb0
parent9456af43d671a899ff5725f99e5186040fff094f

trim trailing newlines in string replacement


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
8383 try writer.writeAll(x);
8484 return;
8585 }
86 const s: string = x;
86 const s = std.mem.trimRight(u8, x, "\n");
8787 for (s) |c| {
8888 if (entityLookupBefore(&[_]u8{c})) |ent| {
8989 try writer.writeAll(ent.entity);