diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2020-12-04 22:16:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 08:16:57 +0200 |
commit | 57674cbc6244842038486409a13e790a23a5af8d (patch) | |
tree | 65b5fb2f61ec8dbf179f455f7fa68f4ed2307502 | |
parent | ba2e8c782c9753d88a69487186aea84da9620c7b (diff) | |
download | nanopb-c-57674cbc6244842038486409a13e790a23a5af8d.tar.gz |
Don't generate lines with trailing spaces (#622)
-rwxr-xr-x | generator/nanopb_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index b58355c..b9743a4 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -1439,7 +1439,7 @@ class ProtoFile: msgs = '_'.join(str(n) for n in checks_msgnames) yield '/* If you get an error here, it means that you need to define PB_FIELD_32BIT\n' yield ' * compile-time option. You can do that in pb.h or on compiler command line.\n' - yield ' * \n' + yield ' *\n' yield ' * The reason you need to do this is that some of your messages contain tag\n' yield ' * numbers or field sizes that are larger than what can fit in 8 or 16 bit\n' yield ' * field descriptors.\n' @@ -1456,7 +1456,7 @@ class ProtoFile: msgs = '_'.join(str(n) for n in checks_msgnames) yield '/* If you get an error here, it means that you need to define PB_FIELD_16BIT\n' yield ' * compile-time option. You can do that in pb.h or on compiler command line.\n' - yield ' * \n' + yield ' *\n' yield ' * The reason you need to do this is that some of your messages contain tag\n' yield ' * numbers or field sizes that are larger than what can fit in the default\n' yield ' * 8 bit descriptors.\n' |