[MAGNOLIA-7024] Export trims whitespaces in property values Created: 09/May/17  Updated: 18/May/17  Resolved: 18/May/17

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 5.5.4
Fix Version/s: 5.5.5

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLDEMO-214 Demonstrate YAML bootstrap format Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Kromeriz 96
Story Points: 1

 Description   

It's because of the default format config:

public JcrExportCommand() {
          final org.jdom.output.Format format = org.jdom.output.Format.getPrettyFormat();
-         format.setTextMode(org.jdom.output.Format.TextMode.NORMALIZE); 
+        format.setTextMode(org.jdom.output.Format.TextMode.PRESERVE);
          format.setLineSeparator("\n");
          getOutputter().setFormat(format);
}

Generated at Mon Feb 12 04:20:01 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.