From: Luke Kenneth Casson Leighton Date: Tue, 20 Mar 2018 17:38:21 +0000 (+0000) Subject: add linebreak on long line X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96e69ad77277498091045d3619f9bd93a3e5af02;p=pinmux.git add linebreak on long line --- diff --git a/src/interface_decl.py b/src/interface_decl.py index e34d102..7fab0fb 100644 --- a/src/interface_decl.py +++ b/src/interface_decl.py @@ -31,6 +31,8 @@ class Pin(object): res += ','.join(status) res += '*)' res += " method " + if self.io: + res += "\n " if self.action: res += " Action " res += self.name @@ -62,7 +64,7 @@ class Interface(object): self.pins.append(Pin(**p)) def __str__(self): - return '\n'.join(map(str, self.pins)) + return '\n'+'\n'.join(map(str, self.pins)) def format(self, i): return str(self).format(i)