🐛 (textBubble) Fix variable with text styles unwanted break lines
This commit is contained in:
@@ -132,6 +132,7 @@ const parseVariablesInRichText = (
|
|||||||
? variableInText.value
|
? variableInText.value
|
||||||
: variableInText.value.replace(/[\n]+/g, ' ')
|
: variableInText.value.replace(/[\n]+/g, ' ')
|
||||||
)
|
)
|
||||||
|
|
||||||
const variableElementsWithStyling = applyElementStyleToDescendants(
|
const variableElementsWithStyling = applyElementStyleToDescendants(
|
||||||
variableElements,
|
variableElements,
|
||||||
{
|
{
|
||||||
@@ -141,7 +142,12 @@ const parseVariablesInRichText = (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (isStandaloneElement) {
|
if (
|
||||||
|
isStandaloneElement &&
|
||||||
|
!element.bold &&
|
||||||
|
!element.italic &&
|
||||||
|
!element.underline
|
||||||
|
) {
|
||||||
parsedElements.push(...variableElementsWithStyling)
|
parsedElements.push(...variableElementsWithStyling)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user