mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 08:18:59 +00:00
Merge pull request #1249 from lightpanda-io/comment-format
fix comment formatting
This commit is contained in:
@@ -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 {
|
pub fn format(self: *const CData, writer: *std.io.Writer) !void {
|
||||||
return switch (self._type) {
|
return switch (self._type) {
|
||||||
.text => writer.print("<text>{s}</text>", .{self._data}),
|
.text => writer.print("<text>{s}</text>", .{self._data}),
|
||||||
.comment => writer.print("<comment>{s}</comment>", .{self._data}),
|
.comment => writer.print("<!-- {s} -->", .{self._data}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user