changeset 100:ee184bd0f428

text_x_arnica: whitespace fix
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 25 Jun 2008 09:07:17 +0200
parents 4762bad57dae
children 53d3a5de67d4
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Tue Jun 24 03:13:45 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Wed Jun 25 09:07:17 2008 +0200
@@ -93,7 +93,7 @@
     attach_dir = AttachFile.getAttachDir(request, pagename)
     files = []
     if os.path.isdir(attach_dir):
-        files = [fn.decode(config.charset) for fn in os.listdir(attach_dir) 
+        files = [fn.decode(config.charset) for fn in os.listdir(attach_dir)
                  if wikiutil.isPicture(fn) and not fn.startswith('tmp.')]
     return files
 
@@ -139,7 +139,7 @@
         if not self.request.user.may.delete(self.pagename):
             return ''
 
-        return '''
+        return '''\
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
           <td%(style)s>
             <input type="hidden" name="action" value="arnica_slides">
@@ -153,7 +153,7 @@
             <input type="hidden" name="action" value="arnica_slides">
             <input type="hidden" name="do" value="rotate_right">
             <input type="hidden" name="target" value="%(this_target)s">
-            <input type="image"  value="submit" src="%(htdocs)s/common/arnica/arnica_rotate_to_right.png" title="rotate to right" >
+            <input type="image"  value="submit" src="%(htdocs)s/common/arnica/arnica_rotate_to_right.png" title="rotate to right">
           </td>
         </form>
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
@@ -161,7 +161,7 @@
             <input type="hidden" name="action" value="arnica_slides">
             <input type="hidden" name="do" value="delete">
             <input type="hidden" name="target" value="%(this_target)s">
-            <input type="image" value="submit" src="%(htdocs)s/common/arnica/arnica_remove_image.png" title="move to bak" >
+            <input type="image" value="submit" src="%(htdocs)s/common/arnica/arnica_remove_image.png" title="move to bak">
            </td>
         </form>''' % {
             'baseurl': self.request.getBaseURL(),
@@ -176,7 +176,7 @@
         """
         this_image = self.full[idx]
 
-        text = '''
+        text = '''\
             <table align="center" width="%(thumbnail_width)s"%(tablestyle)s>
                 <tr>
                     <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
@@ -196,7 +196,7 @@
                             <input type="hidden" name="pagename" value='%(pagename)s'>
                             <input type="hidden" name="images" value='%(images)s'>
                             <input type="hidden" name="exif_date" value='%(exif_date)s'>
-                            <input type="image" value="submit" src="%(htdocs)s/common/arnica/arnica_load_slide_show.png" title="slide_show" >
+                            <input type="image" value="submit" src="%(htdocs)s/common/arnica/arnica_load_slide_show.png" title="slide_show">
                        </td>
                     </form>
                     %(html_show_tools_restricted)s
@@ -222,7 +222,7 @@
         """ shows toolbox """
         text = ''
         if self.show_tools:
-            text = "<tr><td align=""center""%(style)s>%(tools)s </td></tr>" % {
+            text = "<tr><td align=""center""%(style)s>%(tools)s</td></tr>" % {
                 "style": self.td_style,
                 "tools": self.html_tools(idx)}
         return text
@@ -252,11 +252,10 @@
         if self.album:
             title = "%(n)d images (%(album_title)s)" % {"n": len(self.full), "album_title": self.album_title or self.pagename}
 
-        text = '''
+        text = '''\
     <table width="%(thumbnail_width)s" align="center" valign="center"%(style)s>
     <tr align="center" valign="center">
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
-
             <td align="center" valign="middle" width="%(thumbnail_width)s"
             %(tdstyle)s>
                 %(title)s
@@ -268,7 +267,7 @@
                 <input type="hidden" name="pagename" value='%(pagename)s'>
                 <input type="hidden" name="images" value='%(images)s'>
                 <input type="hidden" name="image_for_webnail" value='%(image_for_webnail)s'>
-                <input type="image" value="submit" type="button" src="%(baseurl)s/%(pagename)s?action=arnica_slides&do=view&target=%(thumbnail)s" >
+                <input type="image" value="submit" type="button" src="%(baseurl)s/%(pagename)s?action=arnica_slides&do=view&target=%(thumbnail)s">
             </td>
         </form>
     </tr>