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(); }