Skip to content

Conversation

@vvmnnnkv
Copy link

in isdProcessContentElement, after removing empty span before br, br position value is not updated.
This makes next "after_br" step to start from the wrong position.

Consider following example:

<p><span>1 </span><span> </span><span> </span><br/><span> 2</span><span> 3</span><span> 4</span></p>

Expected result after trimming is:
1<br>2 3 4

Actual result is:
1<br> 2 34

Notice how left trimming was applied to " 4" instead of " 2"

in `isdProcessContentElement`, after removing empty span before `br`, br position value is not updated. 
This makes next "after_br" step to start from the wrong position.

Consider following example:
```xml
<p><span>1 </span><span> </span><span> </span><br/><span> 2</span><span> 3</span><span> 4</span></p>
```
Expected result after trimming is:
`1<br>2 3 4`

Actual result is:
`1<br> 2 34`

Notice how left trimming was applied to " 4 " instead of " 2"
@palemieux
Copy link
Contributor

Replaced by #196

@palemieux palemieux closed this Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants