package testtextwhitespace templ WhitespaceIsAddedWithinTemplStatements() {

This is some text. if true { So is this. }

} const WhitespaceIsAddedWithinTemplStatementsExpected = `

This is some text. So is this.

` templ InlineElementsAreNotPadded() {

Inline text is spaced properly without adding extra spaces.

} const InlineElementsAreNotPaddedExpected = `

Inline text is spaced properly without adding extra spaces.

` templ WhiteSpaceInHTMLIsNormalised() {

newlines and other whitespace are stripped but it is normalised like HTML.

} const WhiteSpaceInHTMLIsNormalisedExpected = `

newlines and other whitespace are stripped but it is normalised like HTML.

` templ WhiteSpaceAroundValues() {

templ allows { "strings" } to be included in sentences.

} const WhiteSpaceAroundValuesExpected = `

templ allows strings to be included in sentences.

` const WhiteSpaceAroundTemplatedValuesExpected = `
templ allows whitespace around templated values.
` templ WhiteSpaceAroundTemplatedValues(prefix, statement string) {
{ prefix } { statement }
}