Skip to content
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

[FIX] web_editor: properly convert css margin if also inline margin #156087

Closed
wants to merge 1 commit into from

Conversation

Zynton
Copy link
Contributor

@Zynton Zynton commented Mar 1, 2024

When inlining styles for e-mails, some styles could be lost if they were defined in css but also had an inline style that started with the same characters. For example, a node with a style attribute defining margin-top: 10px and a css style defining margin: 5px would end up with margin-top: 10px and losing the rest of the information.

opw-3650141


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

When inlining styles for e-mails, some styles could be lost if they were
defined in css but also had an inline style that started with the same
characters. For example, a node with a style attribute defining
`margin-top: 10px` and a css style defining `margin: 5px` would end up
with `margin-top: 10px` and losing the rest of the information.

opw-3650141
@robodoo
Copy link
Contributor

robodoo commented Mar 1, 2024

@C3POdoo C3POdoo requested a review from a team March 1, 2024 13:44
@dmo-odoo
Copy link
Contributor

dmo-odoo commented Mar 1, 2024

@robodoo r+

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 1, 2024
robodoo pushed a commit that referenced this pull request Mar 1, 2024
When inlining styles for e-mails, some styles could be lost if they were
defined in css but also had an inline style that started with the same
characters. For example, a node with a style attribute defining
`margin-top: 10px` and a css style defining `margin: 5px` would end up
with `margin-top: 10px` and losing the rest of the information.

opw-3650141

closes #156087

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
@robodoo robodoo closed this Mar 1, 2024
gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Mar 9, 2024
When inlining styles for e-mails, some styles could be lost if they were
defined in css but also had an inline style that started with the same
characters. For example, a node with a style attribute defining
`margin-top: 10px` and a css style defining `margin: 5px` would end up
with `margin-top: 10px` and losing the rest of the information.

opw-3650141

closes odoo/odoo#156087

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
@fw-bot fw-bot deleted the 16.0-convertmargins-age branch March 15, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants