aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/typography.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 00:45:21 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 00:45:21 -0400
commit426200b34aef45e3987edf79bc157209f435fb8b (patch)
tree4a4d351085d34bd83451d65ebef768cd732f8899 /IkiWiki/Plugin/typography.pm
parent84c905ec2011ec846d3d8b27f21f5ffd53c73840 (diff)
downloadikiwiki-426200b34aef45e3987edf79bc157209f435fb8b.tar
ikiwiki-426200b34aef45e3987edf79bc157209f435fb8b.tar.gz
avoid fatal error in sanitize
Diffstat (limited to 'IkiWiki/Plugin/typography.pm')
-rw-r--r--IkiWiki/Plugin/typography.pm2
1 files changed, 1 insertions, 1 deletions
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);