* Don't fail syntax check if Text::Typography isn't installed.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 26 Sep 2006 06:08:24 +0000 (06:08 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 26 Sep 2006 06:08:24 +0000 (06:08 +0000)
Closes: #389406
IkiWiki/Plugin/typography.pm
debian/changelog

index 6c5f06b0f3928aa7550a9c6fb32b92ef1891f73d..682dadab7bb7cddc7c960eb9beffcef05a43f5d6 100644 (file)
@@ -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});
 } # }}}
 
index dcc7a7eb3553b5755c88fcbdd7684b2e6de1b715..fd48a61352cfe007a14e869e780b071d91901bdb 100644 (file)
@@ -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 <joeyh@debian.org>  Mon, 25 Sep 2006 17:40:48 -0400
+ -- Joey Hess <joeyh@debian.org>  Tue, 26 Sep 2006 02:08:17 -0400
 
 ikiwiki (1.27) unstable; urgency=low