An extra line break when using @if
in $tmpl()
#22288
Labels
Bug
This tag is applied to issues which reports bugs.
@if
in $tmpl()
#22288
Describe the bug
@if
in$tmpl()
causes an unwanted line break to be inserted.Reproduction Steps
Use
@if
in$tmpl()
, like:main.v
template.txt
Expected Behavior
I expected
to be shown
Current Behavior
It shows
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.7 b79aa02
Environment details (OS name and version, etc.)
V full version: V 0.4.7 c0f7244.b79aa02
OS: macos, macOS, 15.0, 24A335
Processor: 8 cpus, 64bit, little endian, Apple M3
getwd: /Users/syobon/Devel/conditional
vexe: /Users/syobon/.v/v
vexe mtime: 2024-09-23 08:48:38
vroot: OK, value: /Users/syobon/.v
VMODULES: OK, value: /Users/syobon/.vmodules
VTMP: OK, value: /tmp/v_501
Git version: git version 2.39.5 (Apple Git-154)
Git vroot status: weekly.2024.37-51-gb79aa020
.git/config present: true
CC version: Apple clang version 16.0.0 (clang-1600.0.26.3)
thirdparty/tcc status: thirdparty-macos-arm64 713692d4
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: