Also remove soft hyphens from lookup words in the browser viewer

This commit is contained in:
Kovid Goyal 2018-04-01 09:59:16 +05:30
parent 6fdc287ead
commit 5320035eff
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -132,6 +132,7 @@ def populate_list(container):
def create_word_actions_panel(container, word, close_panel_func): def create_word_actions_panel(container, word, close_panel_func):
nonlocal current_data nonlocal current_data
word = str.replace(word, '\u00ad', '')
current_data = word, close_panel_func current_data = word, close_panel_func
container.appendChild(E.div(style='display:none')) container.appendChild(E.div(style='display:none'))
populate_list(container) populate_list(container)