diff --git a/server/app/dicts/mdict/html_cleaner.py b/server/app/dicts/mdict/html_cleaner.py index 8ffbc65..7bc04dc 100644 --- a/server/app/dicts/mdict/html_cleaner.py +++ b/server/app/dicts/mdict/html_cleaner.py @@ -38,6 +38,7 @@ def _expand_compact_html(self, compact_html: str) -> str: pos = m.end() if len(buf) > 0: buf.append(last_end_tag) + buf.append(compact_html[pos:]) return ''.join(buf) else: return compact_html