[Libreoffice-commits] .: helpcontent2/to-wiki

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Sep 23 08:47:13 PDT 2012


 helpcontent2/to-wiki/wikiconv2.py |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit d725d2d6caf66f6e7786ea6d48b3878a60be9eaf
Author: Andras Timar <atimar at suse.com>
Date:   Sun Sep 23 17:46:29 2012 +0200

    fdo#43449 ignore image width and height in wikihelp
    
    According to the OpenOffice.org Developers Guide, the width / height
    attributes are optional. The width and height attributes are currently
    ignored by the [local]help system.
    http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Help_Content
    
    Change-Id: I5c19e18d1e22a9a44f7f6b7ac467b2b4d15c92ab

diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py
index 2a03c63..8603739 100755
--- a/helpcontent2/to-wiki/wikiconv2.py
+++ b/helpcontent2/to-wiki/wikiconv2.py
@@ -419,11 +419,6 @@ class Image(ElementBase):
     def __init__(self, attrs, parent):
         ElementBase.__init__(self, 'image', parent)
         self.src     = attrs['src']
-        try:
-            self.width   = attrs['width']
-            self.height  = attrs['height']
-        except:
-            self.width = self.height = ""
         self.align   = 'left'
         self.alt     = False
         self.alttext = ""
@@ -450,8 +445,6 @@ class Image(ElementBase):
 
         name = self.src[self.src.rfind('/') + 1:]
         wikitext = "[[Image:"+name+"|border|"+self.align+"|"
-        if len(self.width):
-            wikitext = wikitext + self.width+"x"+self.height+"|"
         wikitext = wikitext + self.alttext+"]]"
         return wikitext
 


More information about the Libreoffice-commits mailing list