diff --git a/src/ydata_profiling/report/presentation/flavours/html/templates/table.html b/src/ydata_profiling/report/presentation/flavours/html/templates/table.html index 9bf8671af..306bb70e8 100644 --- a/src/ydata_profiling/report/presentation/flavours/html/templates/table.html +++ b/src/ydata_profiling/report/presentation/flavours/html/templates/table.html @@ -18,11 +18,11 @@ {{ row['name'] }} {% if row['value'].__class__.__name__ == 'list' %} - {% for value in row['value'] %} - {{ value }}{% if loop.last and 'hint' in row %} {{ row['hint'] }}{% endif %} + {% for value in row['value'] +%} + {{ value }}{% if loop.last and 'hint' in row %} {{ row['hint'] }}{% endif %} {% endfor %} {% else %} - {{ row['value'] }}{% if 'hint' in row %} {{ row['hint'] }}{% endif %} + {{ row['value'] }}{% if 'hint' in row %} {{ row['hint'] }}{% endif %} {% endif %} {% endfor %} diff --git a/tests/unit/test_time_series.py b/tests/unit/test_time_series.py index be472f579..1f9fb79a1 100644 --- a/tests/unit/test_time_series.py +++ b/tests/unit/test_time_series.py @@ -37,7 +37,8 @@ def html_profile() -> str: def test_timeseries_identification(html_profile: str): assert "TimeSeries" in html_profile, "TimeSeries not detected" assert ( - "TimeSeries8" in html_profile + 'TimeSeries8' + in html_profile ), "TimeSeries incorrectly identified"