Skip to content
Browse files

make all headers sit on a line (with gettext)

  • Loading branch information...
1 parent 63cc86e commit d40f0730485ec9b3fbd53845a420696259c5d613 nferrier committed Jan 17, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/mdlib/__init__.py
View
3 src/mdlib/__init__.py
@@ -603,7 +603,8 @@ def gettext(self, msgid, stream=sys.stdout, splitter="--text follows this line--
for name,val in hdr:
# Use the subtype, since we're printing just that - tidy it up first
if name.lower() == "content-type":
- val = " ".join([l.strip() for l in part["content-type"].split("\n")])
+ val = part["content-type"]
+ val = " ".join([l.strip() for l in val.split("\n")])
print >>stream, "%s: %s" % (name,val)
print >>stream, splitter
print >>stream, part.get_payload(decode=True)

0 comments on commit d40f073

Please sign in to comment.
Something went wrong with that request. Please try again.