[MGNLFORM-287] Component "formSummary" do not work correctly on Windows Created: 10/Aug/16 Updated: 31/May/21 Resolved: 31/May/21 |
|
| Status: | Closed |
| Project: | Magnolia Form Module |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.3.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Zarko Ivanoski | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | form, forms | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| 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
|
||||||||||||
| Date of First Response: | |||||||||||||
| Description |
|
Component "formSummary" do not work correctly on Windows when need to display data from "formSelection" component. Problem is that in the text area of "formSelection" where labels and values are added, new line separator is always "\n". But then in "info.magnolia.module.form.templates.components.FormSummaryModel", new line separator is choose dynamically with "System.lineSeparator()" and for windows this is "\r\n". Changing the "LINE_SEPARATOR" static field in the model class to use "\r\n|\r|\n|\x0085|\x2028|\x2029" same as in "formSelection.ftl" should fix the issue. How to reproduce it: |
| Comments |
| Comment by Jan Haderka [ 31/May/21 ] |
|
Fixed by changes inĀ |