IndentHandler::callExecutableIndenter uses flag QFile::Text for writing source file and reading back indented source. As stated in QT docs (http://doc.qt.nokia.com/latest/qiodevice.html) it translates EOL to '\r\n' when writing (on Win32) and to '\n' when reading. The original line ends are thus lost.
To test problem: use Notepad++, and set "Show All Characters" option (to see line end characters), then try indenting code using the UniversalIndentGUI plugin. Try indenting again with different line end encodings ("EOL Conversion" to Windows, UNIX and Mac). In Windows format, indenting will convert line ends to "LF", and in Mac format, indenting will remove all line ends.
Anonymous