about summary refs log tree commit
path: root/html.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-01 09:44:45 +0000
committerEric Wong <e@80x24.org>2019-04-22 02:34:37 +0000
commit7c692e6137697de8a8473c4de5c3de4fb03a2989 (patch)
tree23756a60947bd08b2ddf85aad739a79c8ce51d07 /html.h
parentd47734a426c6a1c5bb53eb715582f689daa5ca06 (diff)
downloadcgit-7c692e6137697de8a8473c4de5c3de4fb03a2989.tar.gz
ui-diff: preserve spaces w/o CSS on context lines
We need to use a non-breaking space entity to preserve
spacing for browsers without CSS support.
Diffstat (limited to 'html.h')
-rw-r--r--html.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.h b/html.h
index fa4de77..4479b8e 100644
--- a/html.h
+++ b/html.h
@@ -20,6 +20,7 @@ extern void html_attrf(const char *format,...);
 
 extern void html_txt(const char *txt);
 extern ssize_t html_ntxt(const char *txt, size_t len);
+extern ssize_t html_ntxt_pre(const char *txt, size_t len);
 extern void html_attr(const char *txt);
 extern void html_url_path(const char *txt);
 extern void html_url_arg(const char *txt);