Skip to content

[BUG] {define} block leaves an empty line when rendered #251

Closed
@Ciki

Description

@Ciki

Version: 2.9.2

Bug Description

the {define} block now leaves an empty line when rendered, causing eg. XML file being rendered with latte as invalid.

Steps To Reproduce

{define testBlockLeavesEmptyLine}
  blockContent
{/define}
<?xml version="1.0" encoding="Windows-1250"?>

it renders first line empty

Expected Behavior

the {define} block should not be rendered as an empty line

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