From e18dbd74bdc94bba48047a6551e73170b54e8ed1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 19 Apr 2015 19:44:21 +0000 Subject: If an explicit line break request (.br or .sp) occurs within an .HP block, the next line doesn't hang, but is simply indented. Issue found by Christian Neukirchen in the dmsetup(8) manual on Linux. This patch also improves the indentation of XDGA(3) and XrmGetResource(3). --- man_term.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 863bac22..931ab426 100644 --- a/man_term.c +++ b/man_term.c @@ -482,6 +482,17 @@ pre_sp(DECL_ARGS) for (i = 0; i < len; i++) term_vspace(p); + /* + * Handle an explicit break request in the same way + * as an overflowing line. + */ + + if (p->flags & TERMP_BRIND) { + p->offset = p->rmargin; + p->rmargin = p->maxrmargin; + p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND); + } + return(0); } -- cgit