summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:41:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:41:40 +0000
commit9e132a57b087be87cd731dd96397d9cc75b7bfa3 (patch)
tree5d462816189ff0f2fcc3afe8367da07dc04140d2 /mdocterm.c
parent915fb21ef547b551114dab3787540221a2172ae9 (diff)
downloadmandoc-9e132a57b087be87cd731dd96397d9cc75b7bfa3.tar.gz
-tag, if followed by empty body, doesn't newline.
Versioning up.
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 1fb242a7..37f0bd39 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -351,9 +351,11 @@ flushln(struct termp *p)
*/
if ((TERMP_NOBREAK & p->flags) && vis >= maxvis) {
- putchar('\n');
- for (i = 0; i < p->rmargin; i++)
- putchar(' ');
+ if ( ! (TERMP_NONOBREAK & p->flags)) {
+ putchar('\n');
+ for (i = 0; i < p->rmargin; i++)
+ putchar(' ');
+ }
p->col = 0;
return;
}
@@ -363,10 +365,11 @@ flushln(struct termp *p)
* pad to the right margin and stay off.
*/
- if (p->flags & TERMP_NOBREAK)
- for ( ; vis < maxvis; vis++)
- putchar(' ');
- else
+ if (p->flags & TERMP_NOBREAK) {
+ if ( ! (TERMP_NONOBREAK & p->flags))
+ for ( ; vis < maxvis; vis++)
+ putchar(' ');
+ } else
putchar('\n');
p->col = 0;