Posted by: Wisp
« on: May 20, 2017, 07:08:34 PM »Coded.
I can probably swing a TEXT option for APPEND_FILE that ensures that what's appended is separated by at least one newline from that to which it is appended ... (NB. TEXT would not by itself cause any multiple line breaks.)
I should also mention that, on account of this issue, WeiDU will henceforth only introduce features dealing in LF and if I want to fix the aforementioned bug, I will probably need to convert usage of CRLF (say, by APPEND) into LF.
If KEEP_CRLF is not present, double newlines in the file (but not in newText) will be removed; otherwise, they’re kept.
In any event, if the file ends with CRLF only newText and an ending CRLF will be written; otherwise, if the file does not end with CRLF, it will be written before newText.