From f8eddb387ee5d6e6f9f751888d71ffd80974cb2d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 8 Aug 2026 12:50:00 -1000 Subject: Render each diff body while its file is open --- source/html.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/html.h') diff --git a/source/html.h b/source/html.h index 353254e..0818ab5 100644 --- a/source/html.h +++ b/source/html.h @@ -17,6 +17,11 @@ extern void html(const char *txt); * other than html_raw writes to stdout. */ extern void html_flush(void); +/* Collect page output into sb rather than writing it, until html_capture_end. + * Must not span a filter or anything else that writes to stdout directly. */ +extern void html_capture_begin(struct strbuf *sb); +extern void html_capture_end(void); + __attribute__((format (printf,1,2))) extern void htmlf(const char *format,...); -- cgit v2.8.0