-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-30222: Handled tables copied from external sources #106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test case for output is missing, not sure why we have them in lossy
folder anyway. It feels output testing is needed here as it should be straightforward. Correct me if I'm wrong.
POV ping @dew326 can we indeed normalize pt
to px
as pt*1.33 = px
or should we actually store units in DocBook as well?
@alongosz that would be correct but we are actually "losing" some data here:
|
We can indeed keep the normalization as-is right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internal sync: output testing for lossy cases is not possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
But is there coverage for:
- Handling % unit?
- Making sure units like em is still not stored in the backend format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏆 for DRY in XSLT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍 Indeed 🏅 for DRY here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine now!
QA Approved on eZ Platform EE v2.5.8 with diff.
This PR introduces a slightly different way of handling table width:
normalizeWidth
function which handlespx
andpt
units as these are the main ones used in tables,110.5pt
,style="border: [thickness] [style] [color];"
property from CSS into account and applyingborder="1px"
to make things consistent with the tables generated by RTE by default.TODO:
$ composer fix-cs
).