diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Render each diff body while its file is open
Diffstat (limited to '')
-rw-r--r--source/html.h5
1 file changed, 5 insertions, 0 deletions
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,...);