summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-22 18:19:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-22 18:19:36 +0000
commit97e702f1687ec3975b215d6ea566bf1d6aca30a8 (patch)
tree93cdb5f915b9e944c4383095db18a765722ee556 /term.c
parent300b892da5a31ca81913f814b09e60f8293d7b07 (diff)
downloadmandoc-97e702f1687ec3975b215d6ea566bf1d6aca30a8.tar.gz
mandoc-97e702f1687ec3975b215d6ea566bf1d6aca30a8.tar.zst
mandoc-97e702f1687ec3975b215d6ea566bf1d6aca30a8.zip
Fixed order of printing backspace-encoding for terms that are both bold and underlined (noted by Joerg Sonnenberger).
Diffstat (limited to 'term.c')
-rw-r--r--term.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/term.c b/term.c
index b125d4b0..2a6274ed 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.108 2009/10/19 15:18:30 kristaps Exp $ */
+/* $Id: term.c,v 1.109 2009/10/22 18:19:36 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -548,14 +548,14 @@ encode(struct termp *p, char c)
{
if (' ' != c) {
- if (p->bold) {
- buffer(p, c);
- buffer(p, 8);
- }
if (p->under) {
buffer(p, '_');
buffer(p, 8);
}
+ if (p->bold) {
+ buffer(p, c);
+ buffer(p, 8);
+ }
}
buffer(p, c);
}