[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Outputting 'standalone=yes' in XML dec
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Outputting 'standalone=yes' in XML declaration. |
Date: |
Fri, 13 Mar 2020 16:02:44 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 1f946c8 Outputting 'standalone=yes' in XML declaration.
1f946c8 is described below
commit 1f946c8bfe9faefcbe1b4ff092c8f355f702457c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Mar 13 16:01:51 2020 +0100
Outputting 'standalone=yes' in XML declaration.
---
util/src/main/kotlin/XmlCombinators.kt | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/util/src/main/kotlin/XmlCombinators.kt
b/util/src/main/kotlin/XmlCombinators.kt
index d1cb592..9a1ad56 100644
--- a/util/src/main/kotlin/XmlCombinators.kt
+++ b/util/src/main/kotlin/XmlCombinators.kt
@@ -75,10 +75,14 @@ fun constructXml(indent: Boolean = false, f:
XmlDocumentBuilder.() -> Unit): Str
writer = IndentingXMLStreamWriter(writer)
}
b.writer = writer
- writer.writeStartDocument()
+ /**
+ * NOTE: commenting out because it wasn't obvious how to output the
+ * "standalone = 'yes' directive". Manual forge was therefore preferred.
+ */
+ // writer.writeStartDocument()
f(b)
- writer.writeEndDocument()
- return stream.buffer.toString()
+ // writer.writeEndDocument()
+ return "<?xml version=\"1.0\" encoding=\"UTF-8\"
standalone=\"yes\"?>\n${stream.buffer}"
}
class XmlDocumentDestructor {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Outputting 'standalone=yes' in XML declaration.,
gnunet <=