aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 14:07:01 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 14:07:01 +0000
commit29e0509b544d6b05f417032a73168abf89fcbda6 (patch)
tree7f0f7158b85366b9724267ac25947c6dfc63dbfb /man_html.c
parent67d3a9ba7381a8d6d59bd1938ad074190c96349a (diff)
downloadmandoc-29e0509b544d6b05f417032a73168abf89fcbda6.tar.gz
mandoc-29e0509b544d6b05f417032a73168abf89fcbda6.tar.zst
mandoc-29e0509b544d6b05f417032a73168abf89fcbda6.zip
Let some man_term.c cleanups bleed into man_html.c.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/man_html.c b/man_html.c
index 3d7a0f15..bb4ac449 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.47 2010/12/06 13:53:07 kristaps Exp $ */
+/* $Id: man_html.c,v 1.48 2010/12/06 14:07:01 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -733,15 +733,11 @@ static int
man_literal_pre(MAN_ARGS)
{
- switch (n->tok) {
- case (MAN_nf):
+ if (MAN_nf == n->tok) {
print_otag(h, TAG_BR, 0, NULL);
mh->fl |= MANH_LITERAL;
- break;
- default:
+ } else
mh->fl &= ~MANH_LITERAL;
- break;
- }
return(1);
}