changeset 331:f7f6b4d67c01

text_x_arnica: long text longer than (self.thumbnail_width / 9) characters becomes breakable.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 20 Jan 2009 00:07:04 +0100
parents 3f6de5cba911
children a944836db9bb
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Mon Jan 19 23:17:39 2009 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Tue Jan 20 00:07:04 2009 +0100
@@ -210,7 +210,7 @@
         html = ''
         if self.show_text:
             html = '<div class="description"> %(this_alias)s</div>' % {
-                    "this_alias": self.to_wikitext(self.arnica_image[image][3])}
+                    "this_alias": self.to_wikitext(wikiutil.make_breakable(self.arnica_image[image][3], self.thumbnail_width / 9))}
         return html
 
     def html_arrange_thumbnails(self, image, selected_images):