Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Don't output empty lines for control flow template arguments #9

@FSMaxB

Description

@FSMaxB

I noticed, that when I write something like this:

some text
#{for i = 1, 4 do}#
#{= i}#
#{end}#
some more text

The output is something like:

some text

1
2
3
4

some more text

If I don't want these two empty lines, I would have to write everything into one line like:

#{for i = 1, 4 do}##{= i}##{end}#

This is really ugly to read though. Would you be willing to accept a pull request that would check if a line only contains a control flow template parameter and, if so, doesn't emit those empty lines. (This could be hidden behind some kind of configuration parameter if necessary).

If this is a feature that you think will fit into the scope of slt2, I'd take a look if it is possible to implement this.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions