aflux / neutrino

A light, expandable and full featured image analysis tool for research
10 stars 1 forks source link

anydata<string> replace newlines #16

Open iltommi opened 10 years ago

iltommi commented 10 years ago

When adding a nPhys string property, we should replace newlines with a tag (like ) and converting those back to newlines when getting the property

aflux commented 10 years ago

I think back/forth substitution goes a bit beyond normal usability of text tags in .neu format.

What's in my opinion is needed is a serious sanitizing of strings before dump.

(see https://xkcd.com/327/ ;-) )

iltommi commented 10 years ago

ok let's start by replacing newlines by [tab, space,
, ...]

and of course replacing newlines and equals in key map value phys.property["stupid Key=0"]="stupid \n value"