Skip to content

Commit

Permalink
Re-enable indenting for CCEL and BebliaXML
Browse files Browse the repository at this point in the history
These XML formats do not use mixed content and are therefure (hopefully)
not affected by the behaviour change across Java versions.
  • Loading branch information
schierlm committed Aug 19, 2024
1 parent 84e6b5a commit 2ffc31d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void doExport(Bible bible, String... exportArgs) throws Exception {
m.setSchema(getSchema());
m.marshal(xmlbible, doc);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
if (Boolean.getBoolean("biblemulticonverter.indentxml")) {
if (System.getProperty("biblemulticonverter.indentxml") == null || Boolean.getBoolean("biblemulticonverter.indentxml")) {
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public void doExport(File outputFile, List<Versification> versifications, List<V
Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
m.marshal(refsys, doc);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
if (Boolean.getBoolean("biblemulticonverter.indentxml")) {
if (System.getProperty("biblemulticonverter.indentxml") == null || Boolean.getBoolean("biblemulticonverter.indentxml")) {
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
}
Expand Down

0 comments on commit 2ffc31d

Please sign in to comment.