Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Pod::To::Text] Fix handling of table caption

  • Loading branch information...
commit f5ef031e782420ce671a93103b34ac2d2182b1ca 1 parent e954381
@tadzik tadzik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Pod/To/Text.pm
View
2  lib/Pod/To/Text.pm
@@ -56,7 +56,7 @@ sub table2text($pod) {
for 0..(@rows[1].elems - 1) -> $i {
@maxes.push([max] @rows.map({ $_[$i].chars }));
}
- my $ret = $pod.caption // '';
+ my $ret = $pod.config<caption> ~ "\n" // '';
for @rows -> $row {
for 0..($row.elems - 1) -> $i {
$ret ~= $row[$i].fmt("%-{@maxes[$i]}s") ~ " ";
Please sign in to comment.
Something went wrong with that request. Please try again.