diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-05 10:16:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-05 10:16:01 +0000 |
commit | 9f9ece6d229ab46eab231f3e736a6a2e22b77311 (patch) | |
tree | 7ab8271ed8601ea83776d9e70b5840df9f204006 /html.c | |
parent | d80276536610615caffcc3d1d5ffc405bfc5cc26 (diff) | |
download | mandoc-9f9ece6d229ab46eab231f3e736a6a2e22b77311.tar.gz mandoc-9f9ece6d229ab46eab231f3e736a6a2e22b77311.tar.zst mandoc-9f9ece6d229ab46eab231f3e736a6a2e22b77311.zip |
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.c | 30 |
1 files changed, 14 insertions, 16 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.80 2009/11/02 06:22:44 kristaps Exp $ */ +/* $Id: html.c,v 1.81 2009/11/05 10:16:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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; |