From 41ca712e6e6b6ad1b09c0abcbe87b01ea039b2be Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 1 Jun 2017 19:05:37 +0000 Subject: Minimal implementation of the \h (horizontal motion) escape sequence. Good enough to cope with the average DocBook insanity. --- mandoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index d265463b..2ff4e186 100644 --- a/mandoc.c +++ b/mandoc.c @@ -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 * Copyright (c) 2011-2015 Ingo Schwarze @@ -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; -- cgit v1.2.3-56-ge451