Skip to content

Commit

Permalink
squash warning when rendering image
Browse files Browse the repository at this point in the history
  • Loading branch information
domm committed Oct 18, 2010
1 parent b6db8db commit 791b83e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Text/Textile.pm
Expand Up @@ -1556,8 +1556,8 @@ sub format_image {
} }
if (!$pctw && !$pcth) { if (!$pctw && !$pcth) {
($w,$h) = ($extra =~ m/(^|\s)(\d+|\*)x(\d+|\*)(\s|$)/)[1,2]; ($w,$h) = ($extra =~ m/(^|\s)(\d+|\*)x(\d+|\*)(\s|$)/)[1,2];
$w = '' if $w eq '*'; $w = '' if $w && $w eq '*';
$h = '' if $h eq '*'; $h = '' if $h && $h eq '*';
if (!$w) { if (!$w) {
($w) = ($extra =~ m/(^|[,\s])(\d+)w([\s,]|$)/)[1]; ($w) = ($extra =~ m/(^|[,\s])(\d+)w([\s,]|$)/)[1];
} }
Expand Down

0 comments on commit 791b83e

Please sign in to comment.