pulumi/pkg/codegen/testing/test/testdata/multiline-string-pp
Abhinav Gupta da184df24a
fix(codegen/go): Use raw string literals for multiline-strings
We already have logic in place to generate mutliline strings with
backticks if they meet certain conditions in genTemplateExpression.
However, the logic came into effect only if the string was complex
enough to warrant use of `Sprintf`
because the function short circuits to just printing a string literal
if the string doesn't need a `Sprintf`.

This changes genStringLiteral to be responsible for the decision
of whether the string warrants backticks or not,
retaining the prior conditions on whether the string would benefit
from being split across multiple lines.

Resolves #12358
2023-06-22 10:55:45 -07:00
..
dotnet fix(codegen/go): Use raw string literals for multiline-strings 2023-06-22 10:55:45 -07:00
go fix(codegen/go): Use raw string literals for multiline-strings 2023-06-22 10:55:45 -07:00
nodejs fix(codegen/go): Use raw string literals for multiline-strings 2023-06-22 10:55:45 -07:00
python fix(codegen/go): Use raw string literals for multiline-strings 2023-06-22 10:55:45 -07:00
multiline-string.pp fix(codegen/go): Use raw string literals for multiline-strings 2023-06-22 10:55:45 -07:00