Skip to content
Snippets Groups Projects
Commit bde886a9 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

HtmlTextView: Only delete newlines after displaying xhtml

parent 1ca2714a
No related branches found
No related tags found
No related merge requests found
...@@ -963,7 +963,9 @@ def display_html(self, html, textview, conv_textview, iter_=None): ...@@ -963,7 +963,9 @@ def display_html(self, html, textview, conv_textview, iter_=None):
def _delete_last_char(buffer_, iter_): def _delete_last_char(buffer_, iter_):
start_iter = iter_.copy() start_iter = iter_.copy()
start_iter.backward_char() start_iter.backward_char()
buffer_.delete(start_iter, iter_) text = buffer_.get_text(start_iter, iter_, True)
if text == '\n':
buffer_.delete(start_iter, iter_)
@staticmethod @staticmethod
def _on_copy_clipboard(textview): def _on_copy_clipboard(textview):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment