ned14 / pcpp

A C99 preprocessor written in pure Python
Other
215 stars 39 forks source link

Add option to preserve whitespace. #12

Closed GrantEdwards closed 6 years ago

GrantEdwards commented 6 years ago

Adds Preprocessor instance variable preserve_whitespace that will disable the collapsing of whitespace in output lines. Defaults to False (behavior unchanged from previous versions).

Adds --preserve-whitespace option to pcpp command line utility.

GrantEdwards commented 6 years ago

Sorry for the noise...

I just realized this change doesn't prevent the preprocessor from removing empty lines. Will address that and then do another pull request.