diff options
author | Colin Watson <cjwatson@debian.org> | 2008-12-27 00:00:06 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-12-27 00:00:06 +0000 |
commit | 37d88e6325736d134d16a0129a0efb58a00ce2cc (patch) | |
tree | f95f2166cd8d57e89aded3c5f2cb38968769bdcb /man/man1 | |
parent | 781ef4365df1a0d0ec933a0d36aa1c169d5bb1be (diff) |
Add option to disable hyphenation (Debian bug #166701).
* src/man.c (options, parse_opt): Accept --no-hyphenation. Reset
corresponding variable with -D.
(disable_hyphenation): New function.
(display): Append disable_hyphenation to the decompressor pipeline
if --no-hyphenation is used.
* man/man1/man.man1 (SYNOPSIS, Controlling formatted output):
Document --no-hyphenation.
Diffstat (limited to 'man/man1')
-rw-r--r-- | man/man1/man.man1 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/man/man1/man.man1 b/man/man1/man.man1 index 6243583c..aa59dd71 100644 --- a/man/man1/man.man1 +++ b/man/man1/man.man1 @@ -48,6 +48,7 @@ .RB [\| \-7 \|] .RB [\| \-E .IR encoding \|] +.RB [\| \-\-no\-hyphenation \|] .RB [\| \-p .IR string \|] .RB [\| \-t \|] @@ -925,6 +926,24 @@ device such as as well as a true character encoding such as .BR UTF\-8 . .TP +.B \-\-no\-hyphenation +Normally, +.B nroff +will automatically hyphenate text at line breaks even in words that do not +contain hyphens, if it is necessary to do so to lay out words on a line +without excessive spacing. +This option disables automatic hyphenation, so words will only be hyphenated +if they already contain hyphens. + +If you are writing a manual page and simply want to prevent +.B nroff +from hyphenating a word at an inappropriate point, do not use this option, +but consult the +.B nroff +documentation instead; for instance, you can put "\e%" inside a word to +indicate that it may be hyphenated at that point, or put "\e%" at the start +of a word to prevent it from being hyphenated. +.TP .BI \-p\ string ,\ \-\-preprocessor= string Specify the sequence of preprocessors to run before .B nroff |