From d725d2d6caf66f6e7786ea6d48b3878a60be9eaf Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sun, 23 Sep 2012 17:46:29 +0200 Subject: 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 --- helpcontent2/to-wiki/wikiconv2.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'helpcontent2') diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index 2a03c63397..8603739c1e 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 -- cgit