avoid fatal error in sanitize

master
Joey Hess 2008-07-26 00:45:21 -04:00
parent 84c905ec20
commit 426200b34a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ sub sanitize (@) { #{{{
my %params=@_;
eval q{use Text::Typography};
error($@) if $@;
return $params{content} if $@;
my $attributes=defined $config{typographyattributes} ? $config{typographyattributes} : '3';
return Text::Typography::typography($params{content}, $attributes);