Return to break.in CVS log | Up to [cvsweb.bsd.lv] / mandoc / regress / roff / while |
File: [cvsweb.bsd.lv] / mandoc / regress / roff / while / break.in (download)
Revision 1.1, Sun Apr 21 22:48:59 2019 UTC (5 years, 1 month ago) by schwarze
Implement the roff .break request (break out of a .while loop). Jan Stary <hans at stare dot cz> found it in an ancient groffer(1) manual page (version 1.19) on MacOS X Mojave. Having .break not implemented wasn't a particularly bright idea because obviously, it tended to cause infinite loops. |
.\" $OpenBSD: break.in,v 1.1 2019/04/21 22:43:00 schwarze Exp $ .Dd $Mdocdate: April 21 2019 $ .Dt WHILE-BREAK 1 .Os .Sh NAME .Nm while-break .Nd break request inside a while loop .Sh DESCRIPTION initial text .nr cnt 11 1 .while n \{\ \n-[cnt] .if !\n[cnt] .break \(en .\} final text