Skip to content

Commit 880d33f

Browse files
committed
Remove the line endings in the tooltip html string
1 parent 68e6197 commit 880d33f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

typescript/libs/popup_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import re
2+
13
from string import Template
24

35
from .logger import log
@@ -236,6 +238,8 @@ def get_popup_manager():
236238

237239
log.info('Popup resource path: {0}'.format(rel_path))
238240
popup_text = sublime.load_resource(rel_path)
241+
re_remove = re.compile("[\n\t\r]")
242+
popup_text = re_remove.sub("", popup_text)
239243
log.info('Loaded tooltip template from {0}'.format(rel_path))
240244

241245
PopupManager.html_template = Template(popup_text)

0 commit comments

Comments
 (0)