about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-21 20:43:16 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-21 20:43:16 +0700
commita632a4ccc505876144ae6ca8b3fd68cdf4bdb64a (patch)
tree329eba51d2763df5fcb050b5e07104a67221b595
parent31dcce4812a6aac8dc4980c1c4e392477748a70f (diff)
downloadformbox-a632a4ccc505876144ae6ca8b3fd68cdf4bdb64a.tar.gz
Stop adding spaces to author name 0.4.1
-rw-r--r--pyproject.toml2
-rwxr-xr-xsrc/formbox.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 46f20c3..4763535 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
 
 [project]
 name = "formbox"
-version = "0.4.0"
+version = "0.4.1"
 description = "Format mbox as HTML/XML"
 readme = "README.md"
 requires-python = ">=3.6"
diff --git a/src/formbox.py b/src/formbox.py
index 0be3093..3943401 100755
--- a/src/formbox.py
+++ b/src/formbox.py
@@ -75,7 +75,7 @@ def render(template, archive, parent):
         if body is None: continue
         message_id = self['Message-Id']
         # Please don't have space in email addresses
-        author = ' '.join(decode(self['From'])).rsplit(maxsplit=1)[0]
+        author = ''.join(decode(self['From'])).rsplit(maxsplit=1)[0]
         rendered_children = render(template, archive, message_id)
         yield template.format(in_reply_to=quote(parent),
                               message_id=quote(message_id), author=author,