问题
I'm trying to find the option that leaves whitespace on blank lines. Currently uncrustify will strip all trailing whitespace (good!), however I want to keep whitespace if it's on a blank line, because it's generally to the indent level.
Is this a blank line nl_*
option, or an indentation indent_*
option? I can't find one to do what I want, or even to control the trailing whitespace option! It just does it by default.
回答1:
I received a response from Ben Gardner, the project lead, who had this to say:
There is no option to do this and there is no plan to add an option to do that at this point.
来源:https://stackoverflow.com/questions/14297499/uncrustify-option-to-leave-whitespace-on-blank-lines