Skip to content

Commit

Permalink
Fix for displaying quote based messages in conversation
Browse files Browse the repository at this point in the history
In conversation, messages with single quote (') or double quote(") quote
wasn't rendered correct. It was difficult for journalist to read those
messages. This commit is fixing that problem of parsing quote based
messages and improves readability of the text in the conversation.

Resolves: #175
  • Loading branch information
ultimatecoder committed Nov 17, 2018
1 parent 267957d commit a53625c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def __init__(self, text):
super().__init__()
layout = QVBoxLayout()
self.setLayout(layout)
message = QLabel(html.escape(text))
message = QLabel(html.escape(text, quote=False))
message.setWordWrap(True)
layout.addWidget(message)

Expand Down

0 comments on commit a53625c

Please sign in to comment.