diff --git a/src/Zilf/Compiler/Compilation.Objects.cs b/src/Zilf/Compiler/Compilation.Objects.cs index a5272c7a87de4c885c126dd046b55e8c1cf7355d..91acf232ad7109e3e3789f5440a285d2a16b8aa1 100644 --- a/src/Zilf/Compiler/Compilation.Objects.cs +++ b/src/Zilf/Compiler/Compilation.Objects.cs @@ -574,7 +574,7 @@ namespace Zilf.Compiler Context.HandleError(new CompilerError(model, CompilerMessages.Values_For_0_Property_Must_Be_1, propName, "strings")); continue; } - ob.DescriptiveName = value.ToStringContext(Context, true); + ob.DescriptiveName = TranslateString((ZilString)value, Context); // skip the length validation continue; diff --git a/test/Zilf.Tests.Integration/ObjectTests.cs b/test/Zilf.Tests.Integration/ObjectTests.cs index 732e62056c632185d49a23e94031d1e9906afc53..0b92128b0715f99db1e8380f7d74da84f638a172 100644 --- a/test/Zilf.Tests.Integration/ObjectTests.cs +++ b/test/Zilf.Tests.Integration/ObjectTests.cs @@ -564,5 +564,14 @@ namespace Zilf.Tests.Integration .WithoutWarnings() .DoesNotCompile(); } + + [TestMethod] + public void DESC_Pseudo_Property_Should_Be_Stripped_Of_Newlines() + { + AssertRoutine("", + "") + .WithGlobal("") + .Outputs("first second third"); + } } }