[Libreoffice-commits] help.git: helpers/xmlhelp.dtd to-wiki/wikiconv2.py

Andras Timar andras.timar at collabora.com
Fri Nov 13 14:27:22 PST 2015


 helpers/xmlhelp.dtd  |    9 ++-------
 to-wiki/wikiconv2.py |    2 +-
 2 files changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 9b62f36c82b8f7b15a8ed5ec062d73bef9a820cc
Author: Andras Timar <andras.timar at collabora.com>
Date:   Fri Nov 13 23:30:25 2015 +0100

    remove lastedited element from dtd and wiki converter
    
    Change-Id: I4eeee9b3a00a197ec915c9996ace0249546f2319

diff --git a/helpers/xmlhelp.dtd b/helpers/xmlhelp.dtd
index 86a17cd..9130e37 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 a04e2da..5f2da13 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)


More information about the Libreoffice-commits mailing list