diff options
author | 2013-10-22 20:38:00 +0000 | |
---|---|---|
committer | 2013-10-22 20:38:00 +0000 | |
commit | 40aba23d1799066f29712e09d028bd41aafc677e (patch) | |
tree | 7de32e86b7d416dfbe09719d0ded66c095ce4385 | |
parent | 6f0fdff7bd838e5309174d1f70528d04e7474a18 (diff) | |
download | mandoc-40aba23d1799066f29712e09d028bd41aafc677e.tar.gz mandoc-40aba23d1799066f29712e09d028bd41aafc677e.tar.zst mandoc-40aba23d1799066f29712e09d028bd41aafc677e.zip |
Parse and ignore .hw (hyphenation points in words); this is safe because
we don't do hyphenation anyway, so there is no point in throwing an ERROR
when encountering .hw.
Real-world usage of the request found by naddy@ in sysutils/dwdiff(1).
-rw-r--r-- | roff.7 | 7 | ||||
-rw-r--r-- | roff.c | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.43 2013/10/14 01:43:14 schwarze Exp $ +.\" $Id: roff.7,v 1.44 2013/10/22 20:38:00 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010, 2011 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: October 14 2013 $ +.Dd $Mdocdate: October 22 2013 $ .Dt ROFF 7 .Os .Sh NAME @@ -644,6 +644,9 @@ This line-scoped request is intended to have one argument specifying the font family to be selected. It is a groff extension, and currently, it is ignored including its arguments, and the number of arguments is not checked. +.Ss \&hw +Specify hyphenation points in words. +This line-scoped request is currently ignored. .Ss \&hy Set automatic hyphenation mode. This line-scoped request is currently ignored. @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.185 2013/10/14 01:43:14 schwarze Exp $ */ +/* $Id: roff.c,v 1.186 2013/10/22 20:38:00 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -47,6 +47,7 @@ enum rofft { ROFF_ds, ROFF_el, ROFF_fam, + ROFF_hw, ROFF_hy, ROFF_ie, ROFF_if, @@ -237,6 +238,7 @@ static struct roffmac roffs[ROFF_MAX] = { { "ds", roff_ds, NULL, NULL, 0, NULL }, { "el", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, { "fam", roff_line_ignore, NULL, NULL, 0, NULL }, + { "hw", roff_line_ignore, NULL, NULL, 0, NULL }, { "hy", roff_line_ignore, NULL, NULL, 0, NULL }, { "ie", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, { "if", roff_cond, roff_cond_text, roff_cond_sub, ROFFMAC_STRUCT, NULL }, |