the next line doesn't hang, but is simply indented.
Issue found by Christian Neukirchen <chneukirchen at gmail dot com>
in the dmsetup(8) manual on Linux.
This patch also improves the indentation of XDGA(3) and XrmGetResource(3).
.HP
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
+.sp 1v
+Vertical spacing an a third line.
+.br
+A fourth line.
.HP -10n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP -4n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 0n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 1n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 2n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 4n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 8n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 16n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
+.br
+And a second line.
.HP 78n
Each hanged paragraph gets a sufficient amount of text
to wrap to the next line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
+
+ Vertical spacing an a third line.
+ A fourth line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next line.
+ And a second line.
Each hanged paragraph gets a sufficient amount of text to wrap to the
next
-/* $OpenBSD: man_term.c,v 1.135 2015/04/19 13:59:37 schwarze Exp $ */
+/* $OpenBSD: man_term.c,v 1.136 2015/04/19 19:43:50 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
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);
}