summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-22 20:38:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-22 20:38:00 +0000
commitb8a5cbbc3079357d3d38795b9f0332e8f98b76a5 (patch)
tree5ab9cff77e6627a07811ed022bf0652a3325a0f0
parent3e6695c0fbfd2d85665ea3a1409a0df04f1aa36b (diff)
downloadmandoc-b8a5cbbc3079357d3d38795b9f0332e8f98b76a5.tar.gz
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.73
-rw-r--r--roff.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/roff.7 b/roff.7
index d84060e9..d54dc47a 100644
--- a/roff.7
+++ b/roff.7
@@ -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.
diff --git a/roff.c b/roff.c
index 352e5549..c8382154 100644
--- a/roff.c
+++ b/roff.c
@@ -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 },