From 7014c7453c50232fb5abed029304f5a51df2788a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 31 Oct 2005 15:33:06 +0000 Subject: [PATCH] * fix: formatting of class elements was broken --- pisi/xmlfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index b153ef88..9e160009 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -400,7 +400,9 @@ class autoxml(oo.autosuper): def format(self, f, errs): if hasattr(self, name): value = getattr(self,name) - f.add_literal_data('%s: %s\n' % (token, format_a(value, f, errs))) + f.add_literal_data(token + ': ') + format_a(value, f, errs) + f.add_line_break() else: if req == mandatory: errs.append(_('Mandatory variable %s not available') % name)