[Jifty-commit] r6197 - wifty/trunk/lib/Wifty/View
Jifty commits
jifty-commit at lists.jifty.org
Sun Dec 28 18:43:32 EST 2008
Author: ruz
Date: Sun Dec 28 18:43:31 2008
New Revision: 6197
Modified:
wifty/trunk/lib/Wifty/View/Feeds.pm
Log:
* render diff for feeds as text and wrap into pre
Modified: wifty/trunk/lib/Wifty/View/Feeds.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View/Feeds.pm (original)
+++ wifty/trunk/lib/Wifty/View/Feeds.pm Sun Dec 28 18:43:31 2008
@@ -53,7 +53,10 @@
}
elsif ( $show_as eq 'diff' or $show_as eq 'diffs' ) {
$summary = {
- content => $last_rev->diff_from,
+ content =>
+ '<pre>'. Jifty->web->escape(
+ $last_rev->diff_from( undef, STYLE => 'Text::Diff::Unified' )
+ ) .'</pre>',
type => 'xhtml',
};
}
More information about the Jifty-commit
mailing list