Hi,
I'm working on the display of the metadata in ReDBox. I have noticed that every time I edit a record, all newlines in the description get replaced by \n. If the record is saved then the \n's are saved as literals in the description field. This seems to be a bug to me - if I don't want the \n's being embedded in the description then who ever is doing the Final Review check needs to go though the description and find all "\n" and replace with actual carriage returns before publishing (and then never ever edit the record again).
Is there a reason why the newlines are replaced? Has anyone else noticed this?
I've checked the code and the replacement happens when portal/default/redbox/workflows/dataset.vm calls a DatasetData method called getJsonMetadata (line 183 in portal/default/redbox/scripts/workflows/dataset.py). The comment in the code is "fix newlines" but I don't know why they need to be "fixed".
Can anybody shed some light on this?
Thanks!
Marianne