Permalink
Browse files

Squelsh warnings when trying rendering undefined

  • Loading branch information...
1 parent defee0e commit ba01f3e8ac16f8df2396c9474a9cdb23df527ca4 @marcusramberg marcusramberg committed with Jun 23, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Text/Textile.pm
View
@@ -349,6 +349,8 @@ sub textile {
$str = $self;
$self = new Text::Textile;
}
+
+ return "" unless defined($str);
# quick translator for abbreviated block names
# to their tag

0 comments on commit ba01f3e

Please sign in to comment.