2
0

🐛 (textBubble) Fix variable with text styles unwanted break lines

This commit is contained in:
Baptiste Arnaud
2024-03-04 16:21:06 +01:00
parent ef69b5b77c
commit daaca9f817

View File

@ -132,6 +132,7 @@ const parseVariablesInRichText = (
? variableInText.value
: variableInText.value.replace(/[\n]+/g, ' ')
)
const variableElementsWithStyling = applyElementStyleToDescendants(
variableElements,
{
@ -141,7 +142,12 @@ const parseVariablesInRichText = (
}
)
if (isStandaloneElement) {
if (
isStandaloneElement &&
!element.bold &&
!element.italic &&
!element.underline
) {
parsedElements.push(...variableElementsWithStyling)
continue
}