mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
WIP: List item factory syntax
This commit is contained in:
parent
3416546eac
commit
fdf91dc08e
10 changed files with 145 additions and 9 deletions
|
@ -59,6 +59,10 @@ class XmlEmitter:
|
|||
self.result += saxutils.escape(str(text))
|
||||
self._needs_newline = False
|
||||
|
||||
def put_cdata(self, text):
|
||||
self.result += f"<![CDATA[{text}]]>"
|
||||
self._needs_newline = False
|
||||
|
||||
def _indent(self):
|
||||
if self.indent is not None:
|
||||
self.result += "\n" + " " * (self.indent * len(self._tag_stack))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue