Skip to content

Commit

Permalink
fixed bug where aligning rows added extra space after first pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
boakley committed Jul 15, 2012
1 parent 959e556 commit e1b3c2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rwb/widgets/dte.py
Expand Up @@ -197,7 +197,8 @@ def convert_to_string(self, rows):
'''
lines = []
for row in rows:
data = "| " + " | ".join(row)
data = " | ".join(row)
data = "|" + data if data.startswith(" ") else "| " + data
lines.append(data.rstrip())
return "\n".join(lines)

Expand Down

0 comments on commit e1b3c2b

Please sign in to comment.