Commit 059fa25e authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[preview] Fix faulty conversion of text to url

parent 271a95e6
......@@ -168,6 +168,11 @@ class Base(object):
def print_real_text(self, real_text, text_tags, graphics, iter_,
if len(real_text.split(' ')) > 1:
# urlparse dont recognises spaces as URL delimiter
log.error('Url with text will not be displayed: %s', real_text)
urlparts = urlparse(real_text)
if not self._accept_uri(urlparts, real_text, additional_data):
Supports Markdown
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