Extra white space in multi-value fields

Created on 5 October 2017, about 7 years ago
Updated 28 March 2023, over 1 year ago

I've created a view to export a collection of nodes to CSV via CSV Serialization. The view shows fields, and for the paragraph field it is displaying the paragraph as a rendered entity. There is a custom display mode to limit that entity to a single field. When it generates the CSV there is one record per node (just as their should be) and the values of the paragraph as listed with their separator, but there is also a large amount of white space within the field.

I believe this is probably the extra lines that would hold either the wrapping divs or theme suggestions of the rendered entity, getting stripped out but leaving empty lines behind (example below). If the field is set to remove white space this behavior remains (presumably because it's run on the final value to each sub-value). But it seems like it should be possible run the values through trim before adding the separator.

c65d1306-c8de-434b-83a4-3cb0f086ca0a,node title,field one,field two,...,field N,"multi-value field value 1
      



      

, 



  
          






            Multi-value field value two
      



      

, 



  
          






            multi-value field value three"
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States acrosman South Carolina, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024