Skip to content

Dedent removes space from block #412

Description

@Gappa

Version: 3.1.3

Bug Description

Space gets removed from a block inside a HTML class. Sure, not the prettiest code, but it works without dedent :)

Steps To Reproduce

Compile this code with Dedent enabled:

<div class="page-content{block page-content-class} content-area{/block}">
	Stuff
</div>

PHP result:

/** {block page-content-class} on line 63 */
public function blockPage_content_class(array $ʟ_args): void
{
	echo 'content-area'; // no space at the start of the string
}

HTML result:

<div class="page-contentcontent-area">
	Stuff
</div>

Expected Behavior

Without Dedent:

/** {block page-content-class} on line 63 */
public function blockPage_content_class(array $ʟ_args): void
{
	echo ' content-area'; // space at the start of the string
}
<div class="page-content content-area">
	Stuff
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions