summaryrefslogtreecommitdiff
path: root/help2man.PL
diff options
context:
space:
mode:
authorBrendan O'Dea <bod@debian.org>2014-03-24 21:31:32 +1100
committerBrendan O'Dea <bod@debian.org>2014-03-24 21:31:32 +1100
commite39057999bc89424a91f1cc22f0abb3c74385527 (patch)
treeb0ea25aa41bfc0eb24452c688f77f671c16072bc /help2man.PL
parentdb872013b1a3e94ef91832c3fb9b5815e91b40ea (diff)
downloadhelp2man-e39057999bc89424a91f1cc22f0abb3c74385527.tar.gz
Improve handling of tagged paragraphs when the body is on a following line
Diffstat (limited to 'help2man.PL')
-rwxr-xr-xhelp2man.PL6
1 files changed, 3 insertions, 3 deletions
diff --git a/help2man.PL b/help2man.PL
index 70c04d4..1b809b6 100755
--- a/help2man.PL
+++ b/help2man.PL
@@ -639,11 +639,11 @@ while (length)
}
# Indented paragraph with tag.
- elsif (s/^( +(\S.*?) +)(\S.*)\n//)
+ elsif (s/^( +(\S.*?))(?:( +)|\n( {20,}))(\S.*)\n//)
{
$matched .= $& if %append_match;
- $indent = length $1;
- $content = ".TP\n\x84$2\n\x84$3\n";
+ $indent = length ($4 || "$1$3");
+ $content = ".TP\n\x84$2\n\x84$5\n";
}
# Indented paragraph.