diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-04 00:08:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-04 00:08:57 +0000 |
commit | 0d0b1841260d652abdd8edd363cd122b8ec3ccda (patch) | |
tree | 8d365a7c05e782c0919dc461ccda1a565cdc6c81 /share/man | |
parent | 8e4bec0135b39cdef6dbbb5056ab1954d47d29ef (diff) |
Pure preprocessor implementation of the roff(7) .ec and .eo requests
(escape character control), touching nothing after the preprocessing
stage and keeping even the state variable local to the preprocessor.
Since the escape character is also used for line continuation, this
requires pulling the implementation of line continuation from the
input reader to the preprocessor, which also considerably shortens
the code required for that.
When the escape character is changed, simply let the preprocessor
replace bare by escaped backslashes and instances of the non-standard
escape character with bare backslashes - that's all we need.
Oh, and if anybody dares to use these requests in OpenBSD manuals,
sending a medium-sized pack of axe-murderes after them might be a
worthwhile part of the punishment, but probably insuffient on its own.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man7/roff.7 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/share/man/man7/roff.7 b/share/man/man7/roff.7 index c3e710dfc28..39b81055ab5 100644 --- a/share/man/man7/roff.7 +++ b/share/man/man7/roff.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: roff.7,v 1.62 2017/06/02 19:21:03 schwarze Exp $ +.\" $OpenBSD: roff.7,v 1.63 2017/06/04 00:08:56 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 2 2017 $ +.Dd $Mdocdate: June 4 2017 $ .Dt ROFF 7 .Os .Sh NAME @@ -806,8 +806,11 @@ This is a Heirloom extension and currently unsupported. Set a trap within a diversion. Currently unsupported. .It Ic \&ec Op Ar char -Change the escape character. -Currently unsupported. +Enable the escape mechanism and change the escape character. +The +.Ar char +argument defaults to the backslash +.Pq Sq \e . .It Ic \&ecr Restore the escape character. Currently unsupported. @@ -837,7 +840,6 @@ See .Ic \&EQ . .It Ic \&eo Disable the escape mechanism completely. -Currently unsupported. .It Ic \&EP End a picture started by .Ic \&BP . |