CSV page rendering does not handle newline character in the same field

Moqui has an excellent feature for rendering any page in different formats. If I do the following code in CSV format and suppose the description field contains a newline character (i.e. enter a key), then it displays it correctly in the list of forms, but in CSV it changes the current line. I think it shouldn't behave like this.

<form-list name="communicationDetail" list="communicationDetailList">
    <field name="communicationEventId"><default-field><display/></default-field></field>
    <field name="description"><default-field><display/></default-field></field>
</form-list>

      

Please help me how this newline character can be ignored when rendering data to CSV. I think he should

Thank you in advance: -)

+3


source to share


1 answer


The CSV output for the XML screen is done with the DefaultScreenMacros.csv.ftl file. There is a macro at the top of the csvValue file that does minimal encoding. There, of course, more could be done to match what your parser is working with.



0


source







All Articles