summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-11-13 23:30:25 +0100
committerAndras Timar <andras.timar@collabora.com>2015-11-13 23:30:25 +0100
commit9b62f36c82b8f7b15a8ed5ec062d73bef9a820cc (patch)
tree7e0c125e9f69b988822b51eadbfc6a14ec1131fb
parent7e12b71f3d846b392053bc0461767272e73c9e69 (diff)
remove lastedited element from dtd and wiki converter
Change-Id: I4eeee9b3a00a197ec915c9996ace0249546f2319
-rw-r--r--helpers/xmlhelp.dtd9
-rwxr-xr-xto-wiki/wikiconv2.py2
2 files changed, 3 insertions, 8 deletions
diff --git a/helpers/xmlhelp.dtd b/helpers/xmlhelp.dtd
index 86a17cdb13..9130e37c02 100644
--- a/helpers/xmlhelp.dtd
+++ b/helpers/xmlhelp.dtd
@@ -15,7 +15,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
-<!--
+<!--
Version 03-Feb-2006
added optional localize attribute to images
-->
@@ -101,7 +101,7 @@ Version 03-Feb-2006
version CDATA #REQUIRED
>
-<!ELEMENT history (created, lastedited)>
+<!ELEMENT history (created)>
<!ELEMENT image (caption* | alt+)?>
<!ATTLIST image
@@ -117,11 +117,6 @@ Version 03-Feb-2006
type CDATA #REQUIRED
>
-<!ELEMENT lastedited (#PCDATA)>
-<!ATTLIST lastedited
- date CDATA #REQUIRED
->
-
<!ELEMENT link (#PCDATA | embedvar | emph | sub | sup | item | variable | switchinline)*>
<!ATTLIST link
href CDATA #REQUIRED
diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py
index a04e2dac0d..5f2da13d88 100755
--- a/to-wiki/wikiconv2.py
+++ b/to-wiki/wikiconv2.py
@@ -751,7 +751,7 @@ class Meta(ElementBase):
def start_element(self, parser, name, attrs):
if name == 'topic':
self.parse_child(Topic(attrs, self))
- elif name == 'history' or name == 'lastedited':
+ elif name == 'history':
self.parse_child(Ignore(attrs, self, name))
else:
self.unhandled_element(parser, name)