changeset 3246:b7005f7b69e5

merged main
author Mikko Virkkil? <mvirkkil@cc.hut.fi>
date Thu, 13 Mar 2008 09:27:46 +0100
parents 630e6066c935 (diff) 886b8969dbc6 (current diff)
children c715d62efc50
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_docbook.py	Wed Mar 12 01:08:43 2008 +0100
+++ b/MoinMoin/formatter/text_docbook.py	Thu Mar 13 09:27:46 2008 +0100
@@ -779,7 +779,9 @@
 
             history.appendChild(revision)
 
-        targetNode.appendChild(history)
+        if history.firstChild:
+            #only add revision history is there is history to add
+            targetNode.appendChild(history)
 
 ### Not supported ###################################################