summaryrefslogtreecommitdiff
path: root/helpcontent2/to-wiki
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-09-23 17:46:29 +0200
committerAndras Timar <atimar@suse.com>2012-09-23 17:46:29 +0200
commitd725d2d6caf66f6e7786ea6d48b3878a60be9eaf (patch)
treed71dd9f76e241dcb8e06cbf078de45511c526cd9 /helpcontent2/to-wiki
parentc87e800a0da6ae192b74df3f05527ca3cd4588c3 (diff)
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
Diffstat (limited to 'helpcontent2/to-wiki')
-rwxr-xr-xhelpcontent2/to-wiki/wikiconv2.py7
1 files changed, 0 insertions, 7 deletions
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