Commit 0a0029b
authored
fix: p tag parsing with alignment (#748)
# Summary
This PR preserves paragraph alignment on empty paragraphs on mobile.
## Test Plan
Insert input content by `Set Input's value` button:
`<html><p style="text-align: right;">Asdasd</p><p style="text-align:
right;"></p><p style="text-align: right;">ddd</p></html>`
And see that alignment on empty p is preserved.
## Screenshots / Videos
https://github.com/user-attachments/assets/c2eff7f8-071e-402b-99c8-7f49b02e1fd4
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ✅ |
| Web | ❌ |
## Checklist
- [X] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)1 parent 0fdac7a commit 0a0029b
2 files changed
Lines changed: 27 additions & 4 deletions
File tree
- android/src/main/java/com/swmansion/enriched/common/parser
- ios/htmlParser
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
| 598 | + | |
596 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
597 | 605 | | |
598 | 606 | | |
599 | 607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
960 | | - | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
961 | 970 | | |
962 | 971 | | |
963 | 972 | | |
| |||
1456 | 1465 | | |
1457 | 1466 | | |
1458 | 1467 | | |
1459 | | - | |
| 1468 | + | |
1460 | 1469 | | |
1461 | 1470 | | |
1462 | 1471 | | |
| |||
1474 | 1483 | | |
1475 | 1484 | | |
1476 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1477 | 1492 | | |
1478 | 1493 | | |
1479 | 1494 | | |
| |||
0 commit comments