From ccf4d9438012ed7d2e19e4a55166f1bc6ce3e952 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 7 Mar 2025 10:20:19 -0500 Subject: cleaned up RTF creation w/ styles. fixed scripting compile bug when unused functions were considered not found. --- src/client/documents/Documents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/documents') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index d21fa04d4..e1aa9aca2 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -927,7 +927,7 @@ export namespace Docs { return InstanceFromProto( Prototypes.get(DocumentType.JOURNAL), - typeof text === 'string' ? RichTextField.textToRtfFormatting(text, undefined, undefined, styles) : text, + typeof text === 'string' ? RichTextField.textToRtf(text, undefined, styles, undefined) : text, { title: new Date().toLocaleDateString(undefined, { weekday: 'long', -- cgit v1.2.3-70-g09d2