Fix template formatting
This commit is contained in:
parent
11bdaad6d7
commit
d504cef8ff
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ fn print(writer: anytype, arg: anytype) !void {
|
||||||
if (T == void) return;
|
if (T == void) return;
|
||||||
if (comptime std.meta.trait.isZigString(T)) return htmlEscape(writer, arg);
|
if (comptime std.meta.trait.isZigString(T)) return htmlEscape(writer, arg);
|
||||||
if (comptime std.meta.trait.isNumber(T)) return std.fmt.format(writer, "{}", .{arg});
|
if (comptime std.meta.trait.isNumber(T)) return std.fmt.format(writer, "{}", .{arg});
|
||||||
std.fmt.format(writer, "{}", .{arg});
|
try std.fmt.format(writer, "{}", .{arg});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn Deref(comptime T: type, comptime names: []const []const u8) type {
|
fn Deref(comptime T: type, comptime names: []const []const u8) type {
|
||||||
|
|
Loading…
Reference in a new issue