mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
tools/generate-wire.py: strip trailing whitespace on lines, fix bolt quotes.
There's a lot of it, and it means we can't `make check-source` on these files. Also bring bolt quotes up-to-date. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -537,7 +537,8 @@ class Master(object):
|
||||
stuff['messages'] = list(self.messages.values()) + list(self.extension_msgs.values())
|
||||
stuff['subtypes'] = subtypes
|
||||
|
||||
print(template.render(**stuff), file=output)
|
||||
for line in template.render(**stuff).splitlines():
|
||||
print(line.rstrip(), file=output)
|
||||
|
||||
|
||||
def main(options, args=None, output=sys.stdout, lines=None):
|
||||
|
||||
Reference in New Issue
Block a user