summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Plugins/SGenshi.py2
-rw-r--r--src/lib/Server/Plugins/TGenshi.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/SGenshi.py b/src/lib/Server/Plugins/SGenshi.py
index 44791212f..6c06a25d0 100644
--- a/src/lib/Server/Plugins/SGenshi.py
+++ b/src/lib/Server/Plugins/SGenshi.py
@@ -14,7 +14,7 @@ class SGenshiTemplateFile(Bcfg2.Server.Plugins.TGenshi.TemplateFile):
raise Bcfg2.Server.Plugin.PluginExecutionError
stream = self.template.generate(metadata=metadata,).filter( \
Bcfg2.Server.Plugins.TGenshi.removecomment)
- data = stream.render('xml')
+ data = stream.render('xml', strip_whitespace=False)
return lxml.etree.XML(data)
class SGenshiEntrySet(Bcfg2.Server.Plugin.EntrySet):
diff --git a/src/lib/Server/Plugins/TGenshi.py b/src/lib/Server/Plugins/TGenshi.py
index a28f5d08a..0d56f0189 100644
--- a/src/lib/Server/Plugins/TGenshi.py
+++ b/src/lib/Server/Plugins/TGenshi.py
@@ -72,13 +72,13 @@ class TemplateFile:
else:
ttypes = [TextTemplate]
if True in [isinstance(self.template, t) for t in ttypes]:
- textdata = stream.render('text')
+ textdata = stream.render('text', strip_whitespace=False)
if type(textdata) == unicode:
entry.text = textdata
else:
entry.text = unicode(textdata, self.encoding)
else:
- xmldata = stream.render('xml')
+ xmldata = stream.render('xml', strip_whitespace=False)
if type(xmldata) == unicode:
entry.text = xmldata
else: