We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
a-h
joerdav
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Unwanted space introduced during templating. Becomes hard to format markdown.
To Reproduce
templ template() { { "\n" } @mdTableHeader("Column1", "Column2") } templ mdTableHeader(columns ...string) { { "\n" } @mdTableRow(columns...) for i:= range columns { if i == len(columns)-1 { { "|-----|" } } else { { "|-----" } } } { "\n" } } templ mdTableRow(columns ...string) { { "|" } for _,s := range columns { { s +"|" } } { "\n" } }
Expected behavior Expected Output:
|Column 1|Column2| |-----|-----|
Actual behaviour Expected Output:
| Column 1| Column2| |----- |-----|
Screenshots If applicable, add screenshots or screen captures to help explain your problem.
Logs If the issue is related to IDE support, run through the LSP troubleshooting section at https://templ.guide/commands-and-tools/ide-support/#troubleshooting-1 and include logs from templ
templ info output
templ info
templ info ✔ (✓) os [ goos=linux goarch=amd64 ] (✓) go [ location=/usr/bin/go version=go version go1.23.6 linux/amd64 ] (✓) gopls [ location=/home/pato/go/bin/gopls version=golang.org/x/tools/gopls v0.18.1 ] (✓) templ [ location=/home/pato/go/bin/templ version=v0.3.819 ]
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Unwanted space introduced during templating. Becomes hard to format markdown.
To Reproduce
Expected behavior
Expected Output:
Actual behaviour
Expected Output:
Screenshots
If applicable, add screenshots or screen captures to help explain your problem.
Logs
If the issue is related to IDE support, run through the LSP troubleshooting section at https://templ.guide/commands-and-tools/ide-support/#troubleshooting-1 and include logs from templ
templ info
outputAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: