Commit 672e6248 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

help2man: allow line breaks in long lists of options

* tools/help2man: Add \: after | when listing optional arguments.
This should fix a lintian warning about unbreakable long line.
parent a8db30d6
Pipeline #20827 passed with stages
in 217 minutes and 29 seconds
...@@ -750,7 +750,8 @@ sub get_option_value ...@@ -750,7 +750,8 @@ sub get_option_value
} }
# Convert option dashes to \- to stop nroff from hyphenating 'em, and # Convert option dashes to \- to stop nroff from hyphenating 'em, and
# embolden. Option arguments get italicised. # embolden. Option arguments get italicized. \: in front of | allow
# linebreaks.
sub convert_option sub convert_option
{ {
local $_ = '\fB' . shift; local $_ = '\fB' . shift;
...@@ -758,7 +759,7 @@ sub convert_option ...@@ -758,7 +759,7 @@ sub convert_option
s/-/\x83/g; s/-/\x83/g;
if (s/\[=(.*)\]$/\\fR[=\\fI$1\\fR]/) if (s/\[=(.*)\]$/\\fR[=\\fI$1\\fR]/)
{ {
s/\|/\\fR|\\fI/g; s/\|/\\fR|\\:\\fI/g;
} }
else else
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment