Hello, is there an option to -not- remove trailing whitespace? Or is there an older version that doesn't remove trailing whitespace? I looked through the documentation and couldn't find an option that looked like it work for me. Thanks, Rich.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Jim,
Thanks for the quick response. This is one of the things where one persons bug is another persons feature. I've been using Codeblocks with the Astyle plugin, and it's been a great tool. I'm on a new team, and I'd like to be able to turn on or turn off removal of trailing whitespace. Would you mind pointing me to the section in the program that I should start looking at?
Thanks again, Rich.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
By adding some print statements, showing the 'formattedLine' and 'ReadyFormattedLine', the trailing whitespace is removed in ASFormatter::nextLine() inside of the 'while (!isLineReady)'. The trailing whitespace has already been removed before the call to 'trim(readyFormattedLine).length()'. I haven't tracked down the exact location inside the really long 'while' statement.
Thanks, Rich.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It should do this now.
Send an example of trailing whitespace not being removed.
Hello, is there an option to -not- remove trailing whitespace? Or is there an older version that doesn't remove trailing whitespace? I looked through the documentation and couldn't find an option that looked like it work for me. Thanks, Rich.
Trailing whitespace is always removed.
You could probably patch the program to not remove it.
Hello Jim,
Thanks for the quick response. This is one of the things where one persons bug is another persons feature. I've been using Codeblocks with the Astyle plugin, and it's been a great tool. I'm on a new team, and I'd like to be able to turn on or turn off removal of trailing whitespace. Would you mind pointing me to the section in the program that I should start looking at?
Thanks again, Rich.
In ASBeautifier function trim(const string& str).
Hello Jim,
By adding some print statements, showing the 'formattedLine' and 'ReadyFormattedLine', the trailing whitespace is removed in ASFormatter::nextLine() inside of the 'while (!isLineReady)'. The trailing whitespace has already been removed before the call to 'trim(readyFormattedLine).length()'. I haven't tracked down the exact location inside the really long 'while' statement.
Thanks, Rich.