You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a severe issue, any windows text editor worth it's salt (hell, even wordpad) can handle LF without CR, including the Apropos JSON parser. Consistency would be nice though
The text was updated successfully, but these errors were encountered:
The newline() method in Google's JSON writer class is both private and doesn't use the writer's built in newline() method (which provides platform specific line separators) which is only a little bit infuriating, but the FileWriter it's constructed with is constructed with an OutputStreamWriter which has a public write method I could override and hide a little regex in to replace \n with \r\n
Method in question:
void java.io.OutputStreamWriter.write(String str, int off, int len) throws IOException
The streamwriter it call write on is private though, so I will need to call the supermethod after inserting my carriage return
Not a severe issue, any windows text editor worth it's salt (hell, even wordpad) can handle LF without CR, including the Apropos JSON parser. Consistency would be nice though
The text was updated successfully, but these errors were encountered: