diff options
author | 2013-10-22 20:37:54 +0000 | |
---|---|---|
committer | 2013-10-22 20:37:54 +0000 | |
commit | 9d9e4011f40f65a941ad17ad6e8fbbbf0d960cc4 (patch) | |
tree | 7827f4f185686a201b8a0660e17745a795c4ef25 | |
parent | Save 'next-server' (a.k.a. siaddr) info in leases file. Saving the (diff) | |
download | wireguard-openbsd-9d9e4011f40f65a941ad17ad6e8fbbbf0d960cc4.tar.xz wireguard-openbsd-9d9e4011f40f65a941ad17ad6e8fbbbf0d960cc4.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-- | share/man/man7/roff.7 | 7 | ||||
-rw-r--r-- | usr.bin/mandoc/roff.c | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/share/man/man7/roff.7 b/share/man/man7/roff.7 index e9341875c3f..527a6923961 100644 --- a/share/man/man7/roff.7 +++ b/share/man/man7/roff.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: roff.7,v 1.23 2013/10/14 01:42:25 schwarze Exp $ +.\" $OpenBSD: roff.7,v 1.24 2013/10/22 20:37:54 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 @@ -670,6 +670,9 @@ This request takes effect only locally, may be overridden by macros and escape sequences, and is only supported in .Xr man 7 for now. +.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. diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c index 31394e5a669..2b98bab84a9 100644 --- a/usr.bin/mandoc/roff.c +++ b/usr.bin/mandoc/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.58 2013/10/14 01:42:26 schwarze Exp $ */ +/* $Id: roff.c,v 1.59 2013/10/22 20:37:54 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -43,6 +43,7 @@ enum rofft { ROFF_ds, ROFF_el, ROFF_fam, + ROFF_hw, ROFF_hy, ROFF_ie, ROFF_if, @@ -233,6 +234,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 }, |