From 078c4f79913f5f296b88db4a9fed67f1ea124c86 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 14 Jun 2017 01:31:26 +0000 Subject: implement the roff(7) \p (break output line) escape sequence --- mandoc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 003bc066..5b541fa4 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.101 2017/06/11 19:37:01 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.102 2017/06/14 01:31:26 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017 Ingo Schwarze @@ -96,6 +96,8 @@ mandoc_escape(const char **end, const char **start, int *sz) case ',': case '/': return ESCAPE_IGNORE; + case 'p': + return ESCAPE_BREAK; /* * The \z escape is supposed to output the following -- cgit v1.2.3-56-ge451