summaryrefslogtreecommitdiffstats
path: root/mandoc.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 /mandoc.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 'mandoc.c')
-rw-r--r--mandoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index 4bfe4c36..03c25e0d 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -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;