Revision r375 corrected the piping problem on Linux, but it introduces another issue. Whenever piping or redirecting the input, astyle adds a final newline at the end of the output.
astyle file.cppproduces the expected output
cat file.cpp | astyle > file-new.cpphas an additional newline at the end of the output
astyle < file.cpp > file-new.cppalso has an additional newline at the end of the output
This is a small but annoying issue.
Log in to post a comment.