summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-01 19:05:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-01 19:05:37 +0000
commit70410dfcfd38b668debf911095b28861d93134f1 (patch)
tree33d8c726de9e8afae8308bd07e389623156bfed1 /mdoc_term.c
parent8aa141e07f78054e526f8f85ec8f12e47a40fbb9 (diff)
downloadmandoc-70410dfcfd38b668debf911095b28861d93134f1.tar.gz
Minimal implementation of the \h (horizontal motion) escape sequence.
Good enough to cope with the average DocBook insanity.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 585b507a..751f3702 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -407,7 +407,8 @@ print_mdoc_node(DECL_ARGS)
if (NODE_EOS & n->flags)
p->flags |= TERMP_SENTENCE;
- p->offset = offset;
+ if (n->type != ROFFT_TEXT)
+ p->offset = offset;
p->rmargin = rmargin;
}