Skip to content

Conversation

@rasamassen
Copy link

@rasamassen rasamassen commented Oct 31, 2025

Description

Fixes incorrect underlines in Word2007 Writer. Implements underline styles in ODText Writer. Implements underline styles as supported by CSS in HTML Writer.

Underline in RTF Writer addressed in pull #2819.

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

For some reason, Font was using the DocumentFormat.OpenXml.Drawing
TextUnderlineValues
rather than the DocumentFormat.OpenXml.Wordprocessing
UnderlineValues
which are different in some cases for reasons?

This fixes underline types in Word2007/OOXML

Compare https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.underlinevalues?view=openxml-3.0.1 with https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.drawing.textunderlinevalues?view=openxml-3.0.1
Implements underline styles in ODF. Implements as much as CSS offers for underline styles.
@coveralls
Copy link

coveralls commented Oct 31, 2025

Coverage Status

coverage: 96.729% (-0.03%) from 96.757%
when pulling 6fc0be9 on rasamassen:underline
into 0ab0b49 on PHPOffice:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants