Hello everyone,
in my project, I have cells that contain a newline in the beginning, like so:
Entry in Column 1:
"line 1 content
line 2 content"
Entry in Column 2:
"
line 2 extra info"
The linebreak uses “\r\n”. After exporting to .csv, I want to keep the linebreak in column 2, so I can properly assign "line 2 extra info" to "line 2 content" at a later stage.
But while Column 1 gets exported as expected, Column 2 gets exported as simply “line 2 extra info", so the linebreak is trimmed away, it seems.
This is OpenRefine 3.10.0, no extensions, on Windows.
I have looked at the Export section in the docs and found nothing there, nor in forums I’ve searched so far.
I have tried using TSV instead, using different separators in “Export custom tabular” and using the “Always quote text” option with no success.
The only workaround I’ve found so far is to export the project as .xlsx and then from Excel/LibreOffice save it as a .csv. That preserves the newlines but is rather cumbersome.
Does anyone know a better way to preserve the newlines at the beginning of the cell?
Thank you
PS: I found no fitting keywords for this question and just used “hints-and-tips”.