#245 Piping issue, reloaded

closed-fixed
None
2015-01-03
2013-10-31
zerstorer
No

Hi,

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.

For instance:

  • astyle file.cpp produces the expected output
  • cat file.cpp | astyle > file-new.cpp has an additional newline at the end of the output
  • astyle < file.cpp > file-new.cpp also has an additional newline at the end of the output

This is a small but annoying issue.

Thanks!

Discussion

  • Jim Pattee

    Jim Pattee - 2013-11-25
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee

    Jim Pattee - 2013-11-25

    Fixed in SVN.

     
  • Jim Pattee

    Jim Pattee - 2014-11-20
    • Status: open-fixed --> closed-fixed
     

Log in to post a comment.