aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-29 14:49:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-29 14:49:44 +0000
commit739c1eaf9cb6f5ff01a9c080620dfb1542000215 (patch)
tree82a5c2ecc235ea9b4a58c9d99523f0a5c53a2f4b /html.h
parente14284bb26298ab505a7489586d706f7d5402835 (diff)
downloadmandoc-739c1eaf9cb6f5ff01a9c080620dfb1542000215.tar.gz
mandoc-739c1eaf9cb6f5ff01a9c080620dfb1542000215.tar.zst
mandoc-739c1eaf9cb6f5ff01a9c080620dfb1542000215.zip
When in a <PRE>, don't print out the <BR> before lines that have leading
whitespace.
Diffstat (limited to 'html.h')
-rw-r--r--html.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/html.h b/html.h
index da31f2ed..561d06e2 100644
--- a/html.h
+++ b/html.h
@@ -1,4 +1,4 @@
-/* $Id: html.h,v 1.39 2011/01/13 14:30:13 kristaps Exp $ */
+/* $Id: html.h,v 1.40 2011/01/29 14:49:44 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -111,11 +111,12 @@ enum htmltype {
struct html {
int flags;
-#define HTML_NOSPACE (1 << 0)
+#define HTML_NOSPACE (1 << 0) /* suppress next space */
#define HTML_IGNDELIM (1 << 1)
#define HTML_KEEP (1 << 2)
#define HTML_PREKEEP (1 << 3)
-#define HTML_NONOSPACE (1 << 4)
+#define HTML_NONOSPACE (1 << 4) /* never add spaces */
+#define HTML_LITERAL (1 << 5) /* literal (e.g., <PRE>) context */
struct tagq tags; /* stack of open tags */
struct rofftbl tbl; /* current table */
struct tag *tblt; /* current open table scope */