🐛 (textBubble) Fix variable with text styles unwanted break lines
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user