diff --git a/lizmap/tooltip.py b/lizmap/tooltip.py index ade778a6..ffb0339f 100755 --- a/lizmap/tooltip.py +++ b/lizmap/tooltip.py @@ -82,7 +82,7 @@ def create_popup_node_item_from_form( alias = field.alias() name = field.name() fname = alias if alias else name - fname = fname.replace("'", "’") + fname = fname.replace("'", "’") # noqa RUF001 # adapt the view depending on the field type field_widget_setup = field.editorWidgetSetup() @@ -145,9 +145,9 @@ def create_popup_node_item_from_form( if node.visibilityExpression().enabled(): visibility = Tooltip._generate_eval_visibility(node.visibilityExpression().data().expression()) - l = level + lvl = level # create div container - if l == 1: + if lvl == 1: active = '' if not headers: active = 'active' @@ -159,14 +159,16 @@ def create_popup_node_item_from_form( active = '{} {}'.format(active, visibility) if visibility and not active: active = visibility - h += '\n' + SPACES + '
{0}