Details

Applies to
Moin 1.9
Purpose
Pretify the XML from the Docbook formatter
Description
Just change the print function for the XML in the Docbook formatter.

Patch

   1 diff -r 7acacea506d8 MoinMoin/formatter/text_docbook.py
   2 --- a/MoinMoin/formatter/text_docbook.py	Sun Nov 29 20:13:23 2009 +0100
   3 +++ b/MoinMoin/formatter/text_docbook.py	Tue Mar 02 11:34:55 2010 +0100
   4 @@ -105,7 +105,7 @@
   5          import StringIO
   6  
   7          f = StringIO.StringIO()
   8 -        Print(self.doc, f)
   9 +        PrettyPrint(self.doc, stream=f)
  10          txt = f.getvalue()
  11          f.close()
  12  

docbook_pretty_print.patch

Discussion

Probably useless, but was useful to me for some post-processing operation on the Docbook file. (It was horrible to see a file with just one line ...).

It has to be discussed whether this could cause problems due to the added whitespace. So, if you are using docbook, please comment below.

Plan


CategoryMoinMoinPatch

MoinMoin: MoinMoinPatch/PretifyDocbookOutput (last edited 2010-04-04 20:39:56 by ThomasWaldmann)