Here's the rub..
[foreach][id] [id] line break here as an html br tag[/foreach]
..anybody have a hack for preserving line breaks in a CSV export?
Rob, thanks for the suggestion. I'll check it out.
No change. I think since it's stripping out the tag, it's not going to work. Also this is for exporting a View table to CSV. The line break is in a [foreach] shortcode, so I'm not sure where it's blowing it out. Grrr..
Interesting. I just created at form with a repeater field and in the repeater section I put a paragraph field and added an entry with the HTML line breaks and the view exported the paragraph field with the new lines. I know that's not the same as what you're doing, but it at least means the export respects the HTML new lines.
Thanks, @Rob. What your test seems to imply is that Formidable's view export respects html line breaks in the long text (paragraph) form field, but not html line breaks in the view itself. So technically, the export does not respect html line breaks unless they're in the form entry. My use case doesn't have a paragraph field in a repeater. My use case formates the [foreach] so each row is separated by an html line break, which gets stripped out no matter what I do.
Please login or Register to submit your answer