authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-06-21 18:28:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-06-21 18:28:18 -07:00
log8401a1944fff76034468cbc9daf74f19aabfe8fb
tree2195bd96a9260e159e9a0409048b47198d6f02a2
parent82747c72ddaa89c023e454dd4a4cecd4773d5433

dont use zig-range anymore


2 files changed, 2 insertions(+), 4 deletions(-)

src/lib.zig+2-3
......@@ -9,7 +9,6 @@
99
1010const std = @import("std");
1111const string = []const u8;
12const range = @import("range").range;
1312const htmlentities = @import("htmlentities");
1413const root = @import("root");
1514
......@@ -47,7 +46,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V
4746 }
4847 } else false;
4948
50 if (opts.flag1) for (range(opts.indent)) |_| try writer.writeAll(" ");
49 if (opts.flag1) for (0..opts.indent) |_| try writer.writeAll(" ");
5150 try writer.writeAll("<");
5251 try writer.writeAll(v.name);
5352
......@@ -79,7 +78,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V
7978 .flag1 = !hastext,
8079 });
8180 }
82 if (!hastext) for (range(opts.indent)) |_| try writer.writeAll(" ");
81 if (!hastext) for (0..opts.indent) |_| try writer.writeAll(" ");
8382 try writer.print("</{s}>", .{v.name});
8483 if (opts.flag1) try writer.writeAll("\n");
8584 }
zig.mod-1
......@@ -4,5 +4,4 @@ main: src/lib.zig
44license: AGPL-3.0
55description: An HTML preprocessor with a builtin template engine.
66dependencies:
7 - src: git https://github.com/nektro/zig-range
87 - src: git https://github.com/kivikakk/htmlentities.zig