| ... | @@ -155,6 +155,11 @@ fn doInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Val | ... | @@ -155,6 +155,11 @@ fn doInner(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Val |
| 155 | if (!opts.escaped) try writer.writeAll(s); | 155 | if (!opts.escaped) try writer.writeAll(s); |
| 156 | return; | 156 | return; |
| 157 | } | 157 | } |
| | 158 | if (TI == .optional) { |
| | 159 | if (comptime extras.isZigString(std.meta.Child(TO))) { |
| | 160 | return writeReplacementString(writer, repl.raw, opts.escaped, x.?); |
| | 161 | } |
| | 162 | } |
| 158 | return x.nprint(writer); | 163 | return x.nprint(writer); |
| 159 | }, | 164 | }, |
| 160 | .block => |v| { | 165 | .block => |v| { |