changeset 339:7163e5cf5b77

text_x_arnica: make album_title breakable
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 21 Jan 2009 22:49:41 +0100
parents 10748ba0542b
children cdf4d4fccd82
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Tue Jan 20 23:05:26 2009 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Wed Jan 21 22:49:41 2009 +0100
@@ -222,8 +222,9 @@
         """
         title = ""
         if self.album and self.show_album_title:
+	    title = wikiutil.make_breakable(self.album_title or self.pagename, self.thumbnail_width / 9)
             title = '<div class="title">%(n)d images (%(album_title)s)</div>' % {"n": len(self.arnica_image),
-                                                        "album_title": self.album_title or self.pagename}
+                                                        "album_title": title}
         html = """
 <div class="thumbnail" style="width:%(width)spx">
     %(title)s