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

CLP-11811 copy cell properties from table styles #71

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

jurisdatum
Copy link
Collaborator

Sometimes there is cell formatting associated with a table style. In the XML, we might see CSS in the <presentation> block that looks like this:

.TableGrid td { border: 0.5pt solid; }

and then some XML in the body that looks like this:

<table class="TableGrid">
   <tr>
      <td>...</td>
   </tr>
</table>

With the included fix, these cell properties will be copied into the style attribute of the HTML like this:

<table>
   <tr>
      <td style="border: 0.5pt solid">...</td>
   </tr>
</table>

We already do something similar with inline styling contained in a paragraph style. This fix just extends it to table styles.
This fix is needed for [2024] UKFTT 564 (TC). See Jira issue CLP-11811

@jurisdatum jurisdatum merged commit edf07de into main Jul 1, 2024
4 checks passed
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