Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99113

Templating code spaces in markdown

$
0
0

@jaswalters wrote:

I came up with this code that works but it creates spaces between the lines when it writes them out in markdown.

Any ideas?

{% for state in states.input_text %}
  {% if state.entity_id | regex_match('^input_text.lockcode_[0-9]') %}
    {{ state.name | trim }}:{{ state.state | trim }}
  {%- endif %}
{%- endfor %}

This is how they get displayed.
Capture

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>