File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ class Icon(MacroElement):
319319 {{ this.options|tojavascript }}
320320 );
321321 {% endmacro %}
322-
322+
323323 {% macro header(this, kwargs) %}
324324 {% if this.is_hex %}
325325 <style>
@@ -380,11 +380,11 @@ def __init__(
380380 ):
381381 super ().__init__ ()
382382 self ._name = "Icon"
383-
383+
384384 # 1. Determine if the input is a hex color
385385 self .is_hex = color .startswith ("#" ) and len (color ) in (4 , 7 )
386386 self .color = color
387-
387+
388388 # 2. Strip the '#' for the CSS class name generation
389389 self .color_name = color [1 :] if self .is_hex else color
390390
@@ -394,7 +394,7 @@ def __init__(
394394 f"color argument of Icon should be one of: { self .color_options } or a valid hex code." ,
395395 stacklevel = 2 ,
396396 )
397-
397+
398398 # 4. Pass the stripped color_name to the JavaScript options
399399 self .options = remove_empty (
400400 marker_color = self .color_name ,
You can’t perform that action at this time.
0 commit comments