I suppose this is enforced by the formatter that blocks are not in single line, but in cases like this one, when it's only a class name, or above, where it's a copydocs link it makes them multiline in resulting HTML.
It's not invalid, and probably will work fine in most cases, but it would be better to make it not have unnecessary line breaks or whitespace inside these values.
Maybe values like these should be variables in the template, not blocks.
After a quick investigation, I believe the true fix is to update the template-finder project to configure Jinja to trim_blocks, the first newline after a template tag is removed automatically. Then we can use the whitespace control to trim further whitespace using {%- block -%}.
I suppose this is enforced by the formatter that blocks are not in single line, but in cases like this one, when it's only a class name, or above, where it's a copydocs link it makes them multiline in resulting HTML.
It's not invalid, and probably will work fine in most cases, but it would be better to make it not have unnecessary line breaks or whitespace inside these values.
Maybe values like these should be variables in the template, not blocks.
After a quick investigation, I believe the true fix is to update the template-finder project to configure Jinja to trim_blocks, the first newline after a template tag is removed automatically. Then we can use the whitespace control to trim further whitespace using {%- block -%}.