Skip to content

Commit c8a3cd4

Browse files
authored
Merge pull request #955 from jtbaker/Tooltip-fix
Tooltip Template string switch from single quotes to template literal.
2 parents 25bfd5c + c3c88c3 commit c8a3cd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folium/map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ class Tooltip(MacroElement):
361361
_template = Template(u"""
362362
{% macro script(this, kwargs) %}
363363
{{ this._parent.get_name() }}.bindTooltip(
364-
'<div{% if this.style %} style="{{ this.style }}"{% endif %}>'
365-
+ '{{ this.text }}' + '</div>',
364+
`<div{% if this.style %} style="{{ this.style }}"{% endif %}>`
365+
+ `{{ this.text }}` + `</div>`,
366366
{{ this.options }}
367367
);
368368
{% endmacro %}

0 commit comments

Comments
 (0)