From: joey Date: Tue, 26 Sep 2006 06:08:24 +0000 (+0000) Subject: * Don't fail syntax check if Text::Typography isn't installed. X-Git-Tag: 1.28 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/refs/tags/1.28 * Don't fail syntax check if Text::Typography isn't installed. Closes: #389406 --- diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index 6c5f06b0f..682dadab7 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -5,7 +5,6 @@ package IkiWiki::Plugin::typography; use warnings; use strict; use IkiWiki; -use Text::Typography; sub import { #{{{ IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize); @@ -14,6 +13,9 @@ sub import { #{{{ sub sanitize (@) { #{{{ my %params=@_; + eval q{use Text::Typography}; + return $params{content} if $@; + return Text::Typography::typography($params{content}); } # }}} diff --git a/debian/changelog b/debian/changelog index dcc7a7eb3..fd48a6135 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -ikiwiki (1.28) UNRELEASED; urgency=low +ikiwiki (1.28) unstable; urgency=low * inline: Add ability to sort by page name, based on a patch from Benjamin A'Lee. @@ -6,8 +6,10 @@ ikiwiki (1.28) UNRELEASED; urgency=low braindead interface. Closes: #389383 * Don't rm -rf ikiwiki on distclean, since a) there's no such file and b) those poor Mac OSX users and their case insensative files! + * Don't fail syntax check if Text::Typography isn't installed. + Closes: #389406 - -- Joey Hess Mon, 25 Sep 2006 17:40:48 -0400 + -- Joey Hess Tue, 26 Sep 2006 02:08:17 -0400 ikiwiki (1.27) unstable; urgency=low