Skip to content

Commit

Permalink
#61 First draft: Use pretty print for DataCite Metadata XML
Browse files Browse the repository at this point in the history
Problem: formatAsInlineTags can not be changed in Jsoup => Alle xml Elements and Values are in new lines
  • Loading branch information
helkv committed Aug 23, 2023
1 parent e2d3112 commit ba5fbff
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ private String addGrantInformation(DvObject dvObject, String xmlMetadata) {
Element grantElement = doc.createElement("fundingReferences");
grantElement.html(grantInformation);
resourceElement.appendChild(grantElement);
doc.outputSettings().indentAmount(4).prettyPrint(true); //Problem: formatAsInlineTags can not be changed
xmlMetadata = doc.toString();

return xmlMetadata;
Expand Down

0 comments on commit ba5fbff

Please sign in to comment.