From 407ce74ef454c20ffc9c9dcd2507aafd3b18d3d8 Mon Sep 17 00:00:00 2001 From: Cecilia Avila <44245136+ceciliaavila@users.noreply.github.com> Date: Thu, 16 May 2024 16:49:59 +0000 Subject: [PATCH] fix: [#9441] Multi-line SSML causes escaping issues (#9444) * Remove line breaks from SSML tags * Update yarn-berry.lock * Update yarn-berry.lock files * Update yarn-berry.lock * Update yarn-berry file * Fix hash --------- Co-authored-by: tracyboehrer Co-authored-by: Chris Whitten Co-authored-by: Joel Mut <62260472+sw-joelmut@users.noreply.github.com> Co-authored-by: Joel Mut --- .../lib/code-editor/src/lg/hooks/useStringArray.ts | 7 +++++++ extensions/azurePublish/yarn-berry.lock | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Composer/packages/lib/code-editor/src/lg/hooks/useStringArray.ts b/Composer/packages/lib/code-editor/src/lg/hooks/useStringArray.ts index 9ace306cdc..4e9799655e 100644 --- a/Composer/packages/lib/code-editor/src/lg/hooks/useStringArray.ts +++ b/Composer/packages/lib/code-editor/src/lg/hooks/useStringArray.ts @@ -30,6 +30,13 @@ const getInitialItems = ( const fixMultilineItems = (items: TemplateBodyItem[]) => { return items.map((item) => { if (item.kind === 'variation' && /\r?\n/g.test(item.value)) { + // if it's an SSML tag, remove the line breaks. + if (/^