srctree

Gregory Mullen parent 6a862b60 62acc684
don't drop empty lines

there's another bug here somewhere, good luck finding it
src/patch.zig added: 8, removed: 2, total 6
@@ -473,7 +473,13 @@ pub fn diffLineHtmlUnified(a: Allocator, diff: []const u8) []HTML.Element {
else => {},
}
}
dom.dupe(HTML.div(if (line.len > 0 and line[0] != '@') line[1..] else line, attr));
dom.dupe(HTML.div(
if (line.len > 0)
if (line[0] != '@') line[1..] else line
else
" ",
attr,
));
}
dom = dom.close();
return dom.done();