Wrap on any character for body text display.

This commit is contained in:
Aldo Cortesi 2012-04-08 15:00:38 +12:00
parent a4f7728fad
commit c1788c37a1
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -3,7 +3,7 @@ MANIFEST
/dist /dist
/tmp /tmp
/doc /doc
*.py[cd] *.py[cdo]
*.swp *.swp
*.swo *.swo
mitmproxyc mitmproxyc

View File

@ -96,7 +96,7 @@ def _view_text(content, total):
txt = [] txt = []
for i in utils.cleanBin(content).splitlines(): for i in utils.cleanBin(content).splitlines():
txt.append( txt.append(
urwid.Text(("text", i)) urwid.Text(("text", i), wrap="any")
) )
trailer(total, txt) trailer(total, txt)
return txt return txt