Commit b0eadb86 authored by Matt Harbison's avatar Matt Harbison

py3: fix the email preview content

Previously, the patch was displayed `b"...."`, all in a single line with \n
instead of actual linefeeds.

--HG--
branch : stable
parent d931ef12ec63
......@@ -353,7 +353,7 @@ class EmailDialog(QDialog):
@pyqtSlot()
def _updatepreview(self):
msg = hglib.tounicode(str(self._cmdsession.readAll()))
msg = hglib.tounicode(bytes(self._cmdsession.readAll()))
self._qui.preview_edit.append(msg)
def _previewtabindex(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment