Commit fd437d62 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 ceced82c
......@@ -750,7 +750,8 @@ sub get_option_value
}
# 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
{
local $_ = '\fB' . shift;
......@@ -758,7 +759,7 @@ sub convert_option
s/-/\x83/g;
if (s/\[=(.*)\]$/\\fR[=\\fI$1\\fR]/)
{
s/\|/\\fR|\\fI/g;
s/\|/\\fR|\\:\\fI/g;
}
else
{
......
Markdown is supported
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