fix comment formatting

This commit is contained in:
Pierre Tachoire
2025-12-06 19:15:24 +01:00
parent e41d53019f
commit 08d7f544dd

View File

@@ -75,7 +75,7 @@ pub fn setData(self: *CData, value: ?[]const u8, page: *Page) !void {
pub fn format(self: *const CData, writer: *std.io.Writer) !void {
return switch (self._type) {
.text => writer.print("<text>{s}</text>", .{self._data}),
.comment => writer.print("<comment>{s}</comment>", .{self._data}),
.comment => writer.print("<!-- {s} -->", .{self._data}),
};
}