Jean-Marc Lasgouttes wrote: > I remember that we had a request about that. However, replacing all \n > in the LyX code by some macro that can output \r\n is not something I > want to do. I am not even not sure of how this is handled by C++.
You could do it at file stream level: Always output the file in binary mode and extend odocfstream to handle line ends itself. Similar things could be done in python. However, I doubt that we should even think about that. Every decent version control system can be configured in such a way that text files are stored internally with unix line endings, and checked out copies with OS native line endings. We (and everybody using LyX with a VCS) should just do that and the problem is solved. Georg