Skip to content

Incorrect templating whitespaces example #45131

@kpustelnik

Description

@kpustelnik

Feedback

"The problem" sample output seems to be incorrect (due to some kind of auto formatting perhaps?)
Real result:

Warm

outside.
Image

on website its:

Warm
outside.

Image and a note that `The output has blank lines everywhere. Each {% %} tag occupies a line, and that line break stays in the output even though the tag itself produces nothing visible.` which does not seem to be consistent with the example (and real results?)

URL

https://rc.home-assistant.io/docs/templating/syntax/#the-problem

Version

beta 2026.5.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions