Skip to content

Commit 53b7845

Browse files
Merge pull request #315 from TeamMsgExtractor/next-release
Version 0.38.3
2 parents 6a383e5 + 7e056ad commit 53b7845

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**v0.38.3**
2+
* Fixed issues in HTML generation that caused line breaks to be omitted from large sections of the text.
3+
* Fixed issues with requirements file.
4+
15
**v0.38.2**
26
* Fixed new `NameError` accidentally introduced in the previous version.
37

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ your access to the newest major version of extract-msg.
233233
.. |License: GPL v3| image:: https://img.shields.io/badge/License-GPLv3-blue.svg
234234
:target: LICENSE.txt
235235

236-
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.38.2-blue.svg
237-
:target: https://pypi.org/project/extract-msg/0.38.2/
236+
.. |PyPI3| image:: https://img.shields.io/badge/pypi-0.38.3-blue.svg
237+
:target: https://pypi.org/project/extract-msg/0.38.3/
238238

239239
.. |PyPI2| image:: https://img.shields.io/badge/python-3.6+-brightgreen.svg
240240
:target: https://www.python.org/downloads/release/python-367/

extract_msg/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2828

2929
__author__ = 'Destiny Peterson & Matthew Walker'
30-
__date__ = '2022-12-01'
31-
__version__ = '0.38.2'
30+
__date__ = '2022-12-03'
31+
__version__ = '0.38.3'
3232

3333
import logging
3434

extract_msg/message_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ def htmlBody(self) -> Optional[bytes]:
11601160
if not self._htmlBody and self.body:
11611161
# Convert the plain text body to html.
11621162
logger.info('HTML body was not found, attempting to generate from plain text body.')
1163-
correctedBody = html.escape(self.body).replace('\r', '').replace('\n', '</br>')
1163+
correctedBody = html.escape(self.body).replace('\r', '').replace('\n', '<br />')
11641164
self._htmlBody = f'<html><body>{correctedBody}</body></head>'.encode('utf-8')
11651165

11661166
if not self._htmlBody:
@@ -1312,7 +1312,7 @@ def rtfEncapInjectableHeader(self) -> str:
13121312
"""
13131313
prefix = r'\htmlrtf {\htmlrtf0 {\*\htmltag96 <div>}{\*\htmltag96 <div>}{\*\htmltag64 <p class=MsoNormal>}'
13141314
suffix = r'{\*\htmltag244 <o:p>}{\*\htmlrag252 </o:p>}\htmlrtf \par\par\htmlrtf0 {\*\htmltag72 </p>}{\*\htmltag104 </div>}{\*\htmltag104 </div>}\htmlrtf }\htmlrtf0 '
1315-
joinStr = r'{\*\htmltag116 <br>}\htmlrtf \line\htmlrtf0 '
1315+
joinStr = r'{\*\htmltag116 <br />}\htmlrtf \line\htmlrtf0 '
13161316
formatter = (lambda name, value : fr'\htmlrtf {{\b\htmlrtf0{{\*\htmltag84 <b>}}{name}: {{\*\htmltag92 </b>}}\htmlrtf \b0\htmlrtf0 {inputToString(rtfSanitizeHtml(value), self.stringEncoding)}\htmlrtf }}\htmlrtf0')
13171317

13181318
return self.getInjectableHeader(prefix, joinStr, suffix, formatter)

extract_msg/message_signed_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def htmlBody(self) -> Optional[bytes]:
130130
elif self.body:
131131
# Convert the plain text body to html.
132132
logger.info('HTML body was not found, attempting to generate from plain text body.')
133-
correctedBody = html.escpae(self.body).replace('\r', '').replace('\n', '</br>')
133+
correctedBody = html.escpae(self.body).replace('\r', '').replace('\n', '<br />')
134134
self._htmlBody = f'<html><body>{correctedBody}</body></head>'.encode('utf-8')
135135
else:
136136
logger.info('HTML body could not be found nor generated.')

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
# First level requirements
3-
imapclient>=2.3.0<3
3+
imapclient>=2.3.0,<3
44
olefile==0.46
55
tzlocal==4.2
66
compressed_rtf==1.0.6
77
ebcdic==1.1.1
8-
beautifulsoup4>=4.11.1<4.12
8+
beautifulsoup4>=4.11.1,<4.12
99
RTFDE==0.0.2
10-
chardet>=4.0.0<6
10+
chardet>=4.0.0,<6
1111
red-black-tree-mod==1.20

0 commit comments

Comments
 (0)