Lines.Bytes() doesn't include a trailing newline
Lines.Bytes() doesn't include a trailing newline: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). Lines.Bytes() doesn't include a trailing newline I'm embedding the texteditor widget in my app to let users edit source files. To save changes I grab the buffer contents with…
The task
Lines.Bytes() doesn't include a trailing newline I'm embedding the texteditor widget in my app to let users edit source files. To save changes I grab the buffer contents with Lines.Bytes() and write the result to disk. The saved files never end with a newline character, even…
Part of XiaomiMiMo/MiMo-V2.6-RL-oss.