using uCalcSoftware; var uc = new uCalc(); using (var t = new uCalc.Transformer()) { var source = """ content spans multiple lines """; t.FromTo("{body}", "Body: [{body}]"); Console.WriteLine("--- Default (Newline is a Separator) ---"); // This fails because {body} stops at the first newline Console.WriteLine(t.Transform(source).Text); Console.WriteLine(""); Console.WriteLine("--- Modified (Newline is Whitespace) ---"); // Find the newline token and change its type var newlineToken = t.Tokens["_token_newline"]; newlineToken.TypeOfToken = TokenType.Whitespace; // Now the transform succeeds Console.WriteLine(t.Transform(source).Text); }