Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for displaying quote based messages in conversation #182

Conversation

ultimatecoder
Copy link
Contributor

@ultimatecoder ultimatecoder commented Nov 17, 2018

Description: 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

Video demonstration of this feature.

@ultimatecoder ultimatecoder force-pushed the master-fix-broken-message-rendring branch from a53625c to d5a2831 Compare November 17, 2018 10:07
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: freedomofpress#175
@@ -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))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, single and double quotes no longer escaped!

@heartsucker heartsucker merged commit 043e985 into freedomofpress:master Nov 21, 2018
@heartsucker
Copy link
Contributor

Thanks for the PR ✨

@ultimatecoder
Copy link
Contributor Author

@heartsucker Thanks for reviewing 😄

legoktm added a commit that referenced this pull request Dec 15, 2023
Bump certifi dependency due to root certificate removal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants