Skip to content

Fix text_markdown and text_html - #623

Merged
jh0ker merged 3 commits into
masterfrom
fix-text-properties
May 21, 2017
Merged

Fix text_markdown and text_html#623
jh0ker merged 3 commits into
masterfrom
fix-text-properties

Conversation

@jsmnbom

@jsmnbom jsmnbom commented May 19, 2017

Copy link
Copy Markdown
Member

I bloody hate utf-16....

@jsmnbom
jsmnbom requested review from JosXa and removed request for JosXa May 19, 2017 21:53
Comment thread telegram/message.py Outdated
last_offset = entity.offset + entity.length

markdown_text += escape_html(message_text[last_offset:])
markdown_text += escape_html(message_text[last_offset * 2:].decode('utf-16-le'))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should there be a sys.maxunicode test here as well?

Comment thread telegram/message.py Outdated
last_offset = entity.offset + entity.length

markdown_text += escape_markdown(message_text[last_offset:])
markdown_text += escape_markdown(message_text[last_offset * 2:].decode('utf-16-le'))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

see above comment

@jh0ker
jh0ker merged commit 2e89e21 into master May 21, 2017
@jsmnbom
jsmnbom deleted the fix-text-properties branch June 18, 2017 10:43
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants