From ce958837e06af6cc0487c6b3c1ba37d7b585f9b7 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 6 Jan 2026 10:45:37 -0800 Subject: [PATCH] add pre tags for html --- src/render/formatted.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/formatted.zig b/src/render/formatted.zig index a3659f6..91f7da9 100644 --- a/src/render/formatted.zig +++ b/src/render/formatted.zig @@ -110,6 +110,7 @@ pub fn render(allocator: std.mem.Allocator, data: types.WeatherData, options: Re defer output.deinit(); const w = &output.writer; + if (options.format == .html) try w.writeAll("
");
     if (!options.no_caption)
         try w.print("Weather report: {s}\n\n", .{data.locationDisplayName()});
 
@@ -122,6 +123,7 @@ pub fn render(allocator: std.mem.Allocator, data: types.WeatherData, options: Re
             try renderForecastDay(w, day, options);
         }
     }
+    if (options.format == .html) try w.writeAll("
"); return output.toOwnedSlice(); }