aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit41ca712e6e6b6ad1b09c0abcbe87b01ea039b2be (patch)
treeec9d7acf6d3d88ba8497512fa6e9deea45745d4b /mdoc_term.c
parent5325cd99ac197268bd26af0ee01d0539cb78cb61 (diff)
downloadmandoc-41ca712e6e6b6ad1b09c0abcbe87b01ea039b2be.tar.gz
mandoc-41ca712e6e6b6ad1b09c0abcbe87b01ea039b2be.tar.zst
mandoc-41ca712e6e6b6ad1b09c0abcbe87b01ea039b2be.zip
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 382804d5..77bb6be2 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.358 2017/05/30 16:31:29 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.359 2017/06/01 19:05:37 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;
}