~cldunlap1/ubuntu/quantal/ciderwebmail/typo-fix

« back to all changes in this revision

Viewing changes to debian/patches/1001_avoid_Text-Flowed.patch

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard
  • Date: 2012-06-08 22:28:26 UTC
  • Revision ID: package-import@ubuntu.com-20120608222826-5s9rwdarts06m33n
Tags: 1.04~20120607-1
Initial release.
Closes: Bug#673342.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/lib/CiderWebmail/Part/TextCalendar.pm
 
2
+++ b/lib/CiderWebmail/Part/TextCalendar.pm
 
3
@@ -6,7 +6,7 @@
 
4
 use DateTime::Format::ISO8601;
 
5
 use HTML::Entities;
 
6
 
 
7
-use Text::Flowed;
 
8
+use Text::Autoformat;
 
9
 
 
10
 use Carp qw/ croak /;
 
11
 
 
12
@@ -39,7 +39,7 @@
 
13
         my $description;
 
14
         if ($entry->property('description')) {
 
15
             $description = $entry->property('description');
 
16
-            $description = Text::Flowed::reformat( ($description->[0]->value or '') );
 
17
+            $description = (autoformat($description->[0]->value, { tabspace => 4, all => 1 }) or '');
 
18
             $description =~ s/\n/<br \/>/gxm;
 
19
         }
 
20