diff MoinMoin/converter/text_html_text_moin_wiki.py @ 3961:60b2a8ca5903

disable safari and remove gui edit button
author Byeongweon [tasyblue@gmail.com]
date Mon, 30 Jun 2008 04:26:21 +0900
parents 4fb99140c7c6
children 71b272c93293
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Sat Jun 28 02:23:31 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Mon Jun 30 04:26:21 2008 +0900
@@ -1294,7 +1294,11 @@
 def parse(request, text):
     text = u'<?xml version="1.0"?>%s%s' % (dtd, text)
     text = text.encode(config.charset)
-    try:
+    try:
+        logname = os.path.join(request.cfg.data_dir, "expaterror.log")
+        f = file(logname, "w")
+        f.write(text)
+        f.close()
         return xml.dom.minidom.parseString(text)
     except xml.parsers.expat.ExpatError, msg:
         # this sometimes crashes when it should not, so save the stuff to analyze it: