aboutsummaryrefslogtreecommitdiffstatshomepage
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
commita83ae757baf7eaab8523c0c7bd2bf5974eec34a8 (patch)
treecd6a443f42b11bb644c383973801b28713b2412d /roff.7
parent4fb5f978142125c75113b626a0f51d5ce1a347ed (diff)
downloadmandoc-a83ae757baf7eaab8523c0c7bd2bf5974eec34a8.tar.gz
mandoc-a83ae757baf7eaab8523c0c7bd2bf5974eec34a8.tar.zst
mandoc-a83ae757baf7eaab8523c0c7bd2bf5974eec34a8.zip
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.712
1 files changed, 7 insertions, 5 deletions
diff --git a/roff.7 b/roff.7
index bfce9b16..05a2b5a4 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.81 2017/06/01 19:05:37 schwarze Exp $
+.\" $Id: roff.7,v 1.82 2017/06/02 19:21:23 schwarze Exp $
.\"
.\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010,2011,2013-2015,2017 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: June 1 2017 $
+.Dd $Mdocdate: June 2 2017 $
.Dt ROFF 7
.Os
.Sh NAME
@@ -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 .