summaryrefslogtreecommitdiffstats
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-02 19:21:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-02 19:21:23 +0000
commitbfb452504d8b3a8d83033a92009dcdba6370788c (patch)
tree8f12de603ba3eae6da0c83f0cac8c59ede05373a /roff.7
parent341cc10aaf00ff009f89041f23ec4e6e6519285e (diff)
downloadmandoc-bfb452504d8b3a8d83033a92009dcdba6370788c.tar.gz
Partial implementation of \h (horizontal line drawing function).
A full implementation would require access to output device properties and state variables (both only available after the main parser has finalized the parse tree) before numerical expansions in the roff preprocessor (i.e., before the main parser is even started). Not trying to pull that stunt right now because the static-width implementation committed here is sufficient for tcl-style manual pages and already more complicated than i would have suspected.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.78
1 files changed, 5 insertions, 3 deletions
diff --git a/roff.7 b/roff.7
index 464ee2ad..d2e45027 100644
--- a/roff.7
+++ b/roff.7
@@ -1939,9 +1939,11 @@ and
.Ss \eL\(aq Ns Ar number Ns Oo Ar c Oc Ns \(aq
Vertical line drawing function; ignored by
.Xr mandoc 1 .
-.Ss \el\(aq Ns Ar number Ns Oo Ar c Oc Ns \(aq
-Horizontal line drawing function; ignored by
-.Xr mandoc 1 .
+.Ss \el\(aq Ns Ar width Ns Oo Ar c Oc Ns \(aq
+Draw a horizontal line of
+.Ar width
+using the glyph
+.Ar c .
.Ss \eM[ Ns Ar name ]
Set fill (background) color (groff extension); ignored by
.Xr mandoc 1 .