| ... | ... | @@ -9,7 +9,6 @@ |
| 9 | 9 | |
| 10 | 10 | const std = @import("std"); |
| 11 | 11 | const string = []const u8; |
| 12 | | const range = @import("range").range; |
| 13 | 12 | const htmlentities = @import("htmlentities"); |
| 14 | 13 | const root = @import("root"); |
| 15 | 14 | |
| ... | ... | @@ -47,7 +46,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V |
| 47 | 46 | } |
| 48 | 47 | } else false; |
| 49 | 48 | |
| 50 | | if (opts.flag1) for (range(opts.indent)) |_| try writer.writeAll(" "); |
| 49 | if (opts.flag1) for (0..opts.indent) |_| try writer.writeAll(" "); |
| 51 | 50 | try writer.writeAll("<"); |
| 52 | 51 | try writer.writeAll(v.name); |
| 53 | 52 | |
| ... | ... | @@ -79,7 +78,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V |
| 79 | 78 | .flag1 = !hastext, |
| 80 | 79 | }); |
| 81 | 80 | } |
| 82 | | if (!hastext) for (range(opts.indent)) |_| try writer.writeAll(" "); |
| 81 | if (!hastext) for (0..opts.indent) |_| try writer.writeAll(" "); |
| 83 | 82 | try writer.print("</{s}>", .{v.name}); |
| 84 | 83 | if (opts.flag1) try writer.writeAll("\n"); |
| 85 | 84 | } |