Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

squash warning when rendering image

  • Loading branch information...
commit 791b83e5d1ccedc639c9edf8434e441fd9612c60 1 parent b6db8db
@domm domm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Text/Textile.pm
View
4 lib/Text/Textile.pm
@@ -1556,8 +1556,8 @@ sub format_image {
}
if (!$pctw && !$pcth) {
($w,$h) = ($extra =~ m/(^|\s)(\d+|\*)x(\d+|\*)(\s|$)/)[1,2];
- $w = '' if $w eq '*';
- $h = '' if $h eq '*';
+ $w = '' if $w && $w eq '*';
+ $h = '' if $h && $h eq '*';
if (!$w) {
($w) = ($extra =~ m/(^|[,\s])(\d+)w([\s,]|$)/)[1];
}
Please sign in to comment.
Something went wrong with that request. Please try again.