This is concerning the use of line breaks inside of .yml files, so that the machine can still process the information without including the line breaks inside of the values but still keeping the original .yml file easy to read by those who might want to change it.
So yeah, are there any libraries out there? I'm sure there is some library that does it, but I haven't found one yet.
ID:155438
Jul 7 2011, 6:17 am
|
|
In response to ExPixel
|
|
I'm not sure if line breaks from text documents show up the same as line breaks in BYOND user-inputted text strings.
I'm fairly sure they don't, because I do know how to parse things in and out, but I'm not sure how to *detect* a line break from a text document. |
In response to Oasiscircle
|
|
findtext(text, "\n") will return a non-zero if there is a line break and tell you where it is?
|
In response to ExPixel
|
|
Really? I didn't know that.
I'll try that out, then. |
"This is some text with a line break
In the middle of it that we don't want."
"This is some text with a line break\\nIn the middle of it that we don't want."