From 672e6248b8bf4ae251d1a83facd2398c2eb7087d Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 29 Jul 2020 21:28:01 +0200 Subject: [PATCH] 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. --- tools/help2man | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/help2man b/tools/help2man index 8ee878782..bf1f075cb 100755 --- a/tools/help2man +++ b/tools/help2man @@ -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 {