File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,11 @@ export default class HTML extends PureComponent {
216
216
associateRawTexts ( children ) {
217
217
for ( let i = 0 ; i < children . length ; i ++ ) {
218
218
const child = children [ i ] ;
219
- if ( ( child . wrapper === 'Text' && TEXT_TAGS_IGNORING_ASSOCIATION . indexOf ( child . tagName ) === - 1 ) && children . length > 1 && ( ! child . parent || child . parent . name !== 'p' ) ) {
219
+ if (
220
+ ( child . wrapper === 'Text' && TEXT_TAGS_IGNORING_ASSOCIATION . indexOf ( child . tagName ) === - 1 ) &&
221
+ children . length > 1 &&
222
+ ( ! child . parent || TEXT_TAGS_IGNORING_ASSOCIATION . indexOf ( child . parent . name ) === - 1 )
223
+ ) {
220
224
// Texts outside <p> or not <p> themselves (with siblings)
221
225
let wrappedTexts = [ ] ;
222
226
for ( let j = i ; j < children . length ; j ++ ) {
@@ -238,7 +242,7 @@ export default class HTML extends PureComponent {
238
242
nodeIndex : i ,
239
243
parent : child . parent ,
240
244
parentTag : child . parentTag ,
241
- tagName : child . parent && child . parent . name === 'li' ? ' textwrapper' : 'p ',
245
+ tagName : ' textwrapper',
242
246
wrapper : 'Text'
243
247
} ;
244
248
}
You can’t perform that action at this time.
0 commit comments