From 755753869db767ba371ee733bb746571813258a3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 4 Jul 2017 22:52:00 +0000 Subject: Fix handling of \} on roff request lines. Cures bogus error messages in pages generated with pod2man(1). --- regress/roff/cond/ie.in | 12 ++++++++++-- regress/roff/cond/ie.out_ascii | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'regress') diff --git a/regress/roff/cond/ie.in b/regress/roff/cond/ie.in index bb76765d..580f4270 100644 --- a/regress/roff/cond/ie.in +++ b/regress/roff/cond/ie.in @@ -1,5 +1,5 @@ -.\" $OpenBSD: ie.in,v 1.5 2017/07/04 14:53:26 schwarze Exp $ -.TH IE 1 "December 16, 2014" +.\" $OpenBSD: ie.in,v 1.6 2017/07/04 22:49:59 schwarze Exp $ +.TH IE 1 "July 4, 2017" .SH NAME if \- the roff conditional instruction with else-clause .SH DESCRIPTION @@ -10,6 +10,14 @@ Text following the true condition. .el One-line else after true. .el Another else after true. .br +.ie n \{\ +Two-line +true condition. +.br\} +.el \{\ +Two-line +else after true. +.br\} .ie t One-line false condition. Text following the false condition. .br diff --git a/regress/roff/cond/ie.out_ascii b/regress/roff/cond/ie.out_ascii index 73d3d97c..3dee8d40 100644 --- a/regress/roff/cond/ie.out_ascii +++ b/regress/roff/cond/ie.out_ascii @@ -8,6 +8,7 @@ NNAAMMEE DDEESSCCRRIIPPTTIIOONN One-line true condition. Text following the true condition. + Two-line true condition. Text following the false condition. Two-line else after false. Else after empty condition. @@ -16,4 +17,4 @@ DDEESSCCRRIIPPTTIIOONN -OpenBSD December 16, 2014 IE(1) +OpenBSD July 4, 2017 IE(1) -- cgit v1.2.3-56-ge451