Merge pull request #1249 from lightpanda-io/comment-format

fix comment formatting
This commit is contained in:
Karl Seguin authored and GitHub committed 2025-12-07 07:10:38 +08:00
commit eecadb3962
1 file changed
+1 -1
+1 -1
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}),
};
}