You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A string starting with a newline will lose the newline in the rendered template.
Repro:
string text = Environment.NewLine + "something invariant";
Template template = new Template(text, '«', '»');
if (!text.Equals(template.Render())) throw new Exception("Text not invariant.");
This is using "Antlr4.StringTemplate" C# package from nuget, version=4.0.6.9004 (running on Windows)
The text was updated successfully, but these errors were encountered:
This behavior is certainly correct for a template defined using a .stg file:
SomeTemplate ::= <<
something invariant>>
I need to see if the elimination of the leading newline is part of a StringTemplate group preprocessing step (meaning this is a bug), or part of the template parsing step (meaning this is the expected behavior).
A string starting with a newline will lose the newline in the rendered template.
Repro:
This is using "Antlr4.StringTemplate" C# package from nuget, version=4.0.6.9004 (running on Windows)
The text was updated successfully, but these errors were encountered: