Skip to content

Filter skips lines with only single character #7855

@genotrance

Description

@genotrance

Make a simple template file with following contents:

#? stdtmpl(subsChar='?') | standard
#proc test(): string =
#  result = "@echo off\n"

if %HOMEDRIVE% == "C:" (
  echo "I'm home"
)

a
b
c

Render it using the following nim code:

include "test.tmpl"

echo test()
nim c -r test

@echo off
if %HOMEDRIVE% == "C:" (
  echo "I'm home"

None of the lines with a single character are rendered. If you put a single space character after ), it will show up.

Metadata

Metadata

Assignees

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