diff src/tools/xml_tools.py @ 615:6f4c31192c7c

plugins XEP-0060, XEP-0277, groupblog: comments implementation (first draft, not finished yet): - PubSub options constants are moved to XEP-0060 - comments url are generated/parsed according to XEP-0277 - microblog data can now have the following keys: - "comments", with the url as given in the <link> tag - "comments_service", with the jid of the PubSub service hosting the comments - "comments_node", with the parsed node - comments nodes use different access_model according to parent microblog item access - publisher is not verified yet, see FIXME warning - so far, comments node are automatically subscribed - some bug fixes
author Goffi <goffi@goffi.org>
date Mon, 20 May 2013 23:21:29 +0200
parents 84a6e83157c2
children 0b914394e74f
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Sun Apr 07 23:27:07 2013 +0200
+++ b/src/tools/xml_tools.py	Mon May 20 23:21:29 2013 +0200
@@ -320,6 +320,6 @@
         parser.ElementEvent = onElement
         parser.DocumentEndEvent = onEnd
         tmp = domish.Element((None, "s"))
-        tmp.addRawXml(string.replace('\n', '').replace('\t', ''))
+        tmp.addRawXml(string.replace('\n', ' ').replace('\t', ' '))
         parser.parse(tmp.toXml().encode('utf-8'))
         return self.result.firstChildElement()