From 426200b34aef45e3987edf79bc157209f435fb8b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Jul 2008 00:45:21 -0400 Subject: [PATCH] avoid fatal error in sanitize --- IkiWiki/Plugin/typography.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index 8ae1f3445..4c486d4b4 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -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); -- 2.26.2