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

Added collapseText plugin. #1841

Closed
wants to merge 4 commits into from
Closed

Conversation

johnkenny54
Copy link
Contributor

Resolves #964

If a <text> element has a single child, of type <tspan>

  • remove the <tspan>
  • make all children of <tspan> children of <text>
  • move all attributes of <tspan> to <text>

Exceptions: no changes are made if document contains a style element or either text or tspan has a style attribute.

@johnkenny54 johnkenny54 deleted the collapseText branch December 2, 2023 00:24
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.

Improvement merge text and tspan
1 participant