Skip to content

Commit 7233d1a

Browse files
committed
Merge pull request #222 from zhengbli/fixTooltipStyleIssue
Fix the issue that tooltip doesn't have proper style in Windows 64 version ST 3
2 parents 68e6197 + 880d33f commit 7233d1a

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)