summaryrefslogtreecommitdiffstats
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
commitee228d79036122b2d0284854cd2e94526fd838b9 (patch)
treeaf1a628563d1eec244e087f544b85716482b4923 /term.c
parent8e7e152dca775ad259f5952da753603cc872f7d9 (diff)
downloadmandoc-ee228d79036122b2d0284854cd2e94526fd838b9.tar.gz
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/term.c b/term.c
index 20db6cfe..ad214084 100644
--- a/term.c
+++ b/term.c
@@ -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);
}