aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html')
-rw-r--r--src/html/Element.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/html/Element.zig b/src/html/Element.zig
index 8ecf31e..a9e5897 100644
--- a/src/html/Element.zig
+++ b/src/html/Element.zig
@@ -39,7 +39,7 @@ fn attributesFrom(attributes: anytype) []const Attribute {
const name = field.name;
const value = @field(attributes, name);
- const next_attr: []const Attribute = &.{ .{ .name = name, .value = value } };
+ const next_attr: []const Attribute = &.{.{ .name = name, .value = value }};
attrs = attrs ++ next_attr;
}
@@ -79,7 +79,6 @@ pub fn toHtml(comptime self: Self) []const u8 {
break :string string;
};
-
switch (self.content) {
.void => {},
.string => |s| {
@@ -91,7 +90,7 @@ pub fn toHtml(comptime self: Self) []const u8 {
}
string = string ++ "</" ++ self.tag ++ ">";
- }
+ },
}
string = string ++ if (self.tag.len == 0) "" else "</" ++ self.tag ++ ">";