| ... | @@ -29,7 +29,10 @@ fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime va | ... | @@ -29,7 +29,10 @@ fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime va |
| 29 | switch (comptime value) { | 29 | switch (comptime value) { |
| 30 | .element => |v| { | 30 | .element => |v| { |
| 31 | const hastext = for (v.children) |x| { | 31 | const hastext = for (v.children) |x| { |
| 32 | if (x == .string or x == .replacement) break true; | 32 | switch (x) { |
| | 33 | .string, .replacement, .function => break true, |
| | 34 | .element, .attr, .block, .body => {}, |
| | 35 | } |
| 33 | } else false; | 36 | } else false; |
| 34 | | 37 | |
| 35 | if (flag1) for (range(indent)) |_| try writer.writeAll(" "); | 38 | if (flag1) for (range(indent)) |_| try writer.writeAll(" "); |