This instance was upgraded to Heptapod 0.21.0 (final) today

Commit 472aec39 authored by Jesse McGrew's avatar Jesse McGrew

Use TranslateString instead of ToStringContext for the DESC pseudo-property.

parent 371aefe7edcc
......@@ -574,7 +574,7 @@ namespace Zilf.Compiler
Context.HandleError(new CompilerError(model, CompilerMessages.Values_For_0_Property_Must_Be_1, propName, "strings"));
ob.DescriptiveName = value.ToStringContext(Context, true);
ob.DescriptiveName = TranslateString((ZilString)value, Context);
// skip the length validation
......@@ -564,5 +564,14 @@ namespace Zilf.Tests.Integration
public void DESC_Pseudo_Property_Should_Be_Stripped_Of_Newlines()
.WithGlobal("<OBJECT FOO (DESC \"first\nsecond\r\nthird\")>")
.Outputs("first second third");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment