From 9f9ece6d229ab46eab231f3e736a6a2e22b77311 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 5 Nov 2009 10:16:01 +0000 Subject: 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). --- html.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 5f921ad7..ee90cda1 100644 --- a/html.c +++ b/html.c @@ -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 * @@ -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; -- cgit v1.2.3-56-ge451