diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-01 19:05:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-01 19:05:37 +0000 |
commit | 41ca712e6e6b6ad1b09c0abcbe87b01ea039b2be (patch) | |
tree | ec9d7acf6d3d88ba8497512fa6e9deea45745d4b /mandoc.c | |
parent | 5325cd99ac197268bd26af0ee01d0539cb78cb61 (diff) | |
download | mandoc-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 'mandoc.c')
-rw-r--r-- | mandoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.98 2015/11/12 22:44:27 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.99 2017/06/01 19:05:37 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -175,7 +175,7 @@ mandoc_escape(const char **end, const char **start, int *sz) ++*end; return ESCAPE_ERROR; } - gly = ESCAPE_IGNORE; + gly = (*start)[-1] == 'h' ? ESCAPE_HORIZ : ESCAPE_IGNORE; term = **start; *start = ++*end; break; |