summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-05 10:16:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-05 10:16:01 +0000
commit95fc1e3bcc07ff4d287d29ee96a96e7dba69cc33 (patch)
tree259071a35725515ff6f19d15c9e14e26b34fabc0 /html.c
parent54c1839bf6facda8803778f0b1a0f625de1b7e03 (diff)
downloadmandoc-95fc1e3bcc07ff4d287d29ee96a96e7dba69cc33.tar.gz
Documented that `\s' and `\f' don't work in HTML mode (and why).
Added support for recognising the many forms of `\s' (doesn't yet render).
Diffstat (limited to 'html.c')
-rw-r--r--html.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/html.c b/html.c
index 094cc86e..d64385a5 100644
--- a/html.c
+++ b/html.c
@@ -270,21 +270,19 @@ print_escape(struct html *h, const char **p)
return;
}
- switch (*wp) {
- case ('B'):
- /* TODO */
- break;
- case ('I'):
- /* TODO */
- break;
- case ('P'):
- /* FALLTHROUGH */
- case ('R'):
- /* TODO */
- break;
- default:
- break;
- }
+ /*
+ * These aren't supported, as they're symmetry-breaking
+ * constructs that don't play well with hierarchical
+ * mark-up. Consider:
+ *
+ * \fBHello.
+ * .PP
+ * World.
+ *
+ * The style started before "Hello" wouldn't be able to
+ * propogate into the next `PP' because we'd exit the
+ * current paragraph's scope.
+ */
*p = wp;
return;