summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pod/pod2man.PL5
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/pod2man.PL b/pod/pod2man.PL
index 06e46b4295..26c9764101 100644
--- a/pod/pod2man.PL
+++ b/pod/pod2man.PL
@@ -1123,7 +1123,10 @@ sub internal_lrefs {
}
$retstr .= " entr" . ( @items > 1 ? "ies" : "y" )
- . " elsewhere in this document "; # terminal space to avoid words running together (pattern used strips terminal spaces)
+ . " elsewhere in this document";
+ # terminal space to avoid words running together (pattern used
+ # strips terminal spaces)
+ $retstr .= " " if length $trailing_and;
$retstr .= $trailing_and;
return $retstr;