Attachment 'table_row_style.patch'

Download

   1 diff -r 5ea38c7fa252 MoinMoin/formatter/text_gedit.py
   2 --- a/MoinMoin/formatter/text_gedit.py	Mon Dec 29 17:07:15 2008 +0100
   3 +++ b/MoinMoin/formatter/text_gedit.py	Mon Jan 05 21:01:23 2009 +0100
   4 @@ -138,12 +138,12 @@
   5          return "".join(result)
   6  
   7      # Other ##############################################################
   8 -
   9 +    # XXX Is this still necessary?
  10      style2attribute = {
  11 -        'width': 'width',
  12 -        'height': 'height',
  13 -        'background': 'bgcolor',
  14 -        'background-color': 'bgcolor',
  15 +        #'width': 'width',
  16 +        #'height': 'height',
  17 +        #'background': 'bgcolor',
  18 +        #'background-color': 'bgcolor',
  19          #if this is used as table style="text-align: right", it doesn't work
  20          #if it is transformed to align="right":
  21          #'text-align': 'align',
  22 @@ -181,7 +181,7 @@
  23  
  24      _allowed_table_attrs = {
  25          'table': ['class', 'id', 'style', 'bgcolor', 'width', 'height', ],
  26 -        'row': ['class', 'id', 'style', 'bgcolor', 'width', 'height', ],
  27 +        'row': ['class', 'id', 'style', 'bgcolor', 'width', 'height', 'border-style', 'background-color', 'padding', 'spacing', ],
  28          '': ['colspan', 'rowspan', 'class', 'id', 'style', 'bgcolor', 'width', 'height', ],
  29      }
  30  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-01-05 20:02:34, 1.2 KB) [[attachment:table_row_style.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.