summaryrefslogtreecommitdiffstats
path: root/share/man/man7
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-01-23 00:38:42 +0000
committerschwarze <schwarze@openbsd.org>2015-01-23 00:38:42 +0000
commit4a635483eb5cd55f68d24c217fde341ec0c20d1c (patch)
treea66ff5ff893733680ae2e9f3c834806e839e4417 /share/man/man7
parentSlightly improve \w width measurements: (diff)
downloadwireguard-openbsd-4a635483eb5cd55f68d24c217fde341ec0c20d1c.tar.xz
wireguard-openbsd-4a635483eb5cd55f68d24c217fde341ec0c20d1c.zip
Wonders of roff(7): Integer numbers in numerical expressions can carry
scaling units, and some manuals (e.g. in devel/grcs) actually use that, so let's support it. Missing feature reported by naddy@.
Diffstat (limited to 'share/man/man7')
-rw-r--r--share/man/man7/roff.712
1 files changed, 10 insertions, 2 deletions
diff --git a/share/man/man7/roff.7 b/share/man/man7/roff.7
index b670366b38b..b14dccdcc2a 100644
--- a/share/man/man7/roff.7
+++ b/share/man/man7/roff.7
@@ -1,4 +1,4 @@
-.\" $OpenBSD: roff.7,v 1.45 2015/01/21 23:48:05 jmc Exp $
+.\" $OpenBSD: roff.7,v 1.46 2015/01/23 00:38:42 schwarze Exp $
.\"
.\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 21 2015 $
+.Dd $Mdocdate: January 23 2015 $
.Dt ROFF 7
.Os
.Sh NAME
@@ -1713,6 +1713,14 @@ prefixed by an optional sign
.Sq +
or
.Sq - .
+Each number may be followed by one optional scaling unit described below
+.Sx Scaling Widths .
+The following equations hold:
+.Bd -literal -offset indent
+1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240
+254c = 100i = 24000u = 24000
+1f = 65536u = 65536
+.Ed
.Pp
The following binary operators are implemented.
Unless otherwise stated, they behave as in the C language: