Apache OpenOffice (AOO) Bugzilla – Issue 120656
the bold,with / and with X strike through change to single when save to doc
Last modified: 2020-07-31 05:41:20 UTC
build info:AOO3.4_r1372282 steps: 1.launch OO and new a text document 2.insert some text 3.set strike through with bold,"/","X" 4.save to doc and reopen defect: the three style strike through become to single
Microsoft Office (at least as late as) 2007, only supports single and double strikethrough style, there is no X or /. A more recent versions (possibly 2016) is the same. Even the online version, at the time of writing, is the same. Even loading ODF file into Microsoft Office with style X and /, shows them as single strikethrough instead. Since Microsoft Office has apparently never supported X and / strikethrough styles, it is highly unlikely that its file formats have either. Apache POI also only sees single and double strikethrough for the DOC file format. I would it's not a bug in our DOC loading/saving, but a bug in the unit test in that it expects too much, and it should be testing for a conversion to single strikethrough instead.
+1 How about adding a double strike testcase to the unit test?
I changed our unit test to be more realistic about .doc's limitations. This isn't technically a bug in AOO at all, but since it's a bug in a unit test, I'll close it as RESOLVED FIXED. commit 4e588b9e25e0ea797c0e7d78b564a1b48a56819e (HEAD -> trunk, origin/trunk, origin/HEAD) Date: Fri Jul 31 07:30:41 2020 +0200 Deal with a test that expects strikeout style (X, /, bold, etc.) to be preserved when saving to .doc, even though neither the fileformat, nor apparently MS Office itself, support that. Closes i120656 - the bold,with / and with X strike through change to single when save to doc Patch by: me
(In reply to Peter from comment #2) > +1 > How about adding a double strike testcase to the unit test? The unit test already had a double strikeout testcase, and still does. It passes.
Ahh Awesome! Thanks Damjan!
(In reply to Peter from comment #5) > Ahh Awesome! Thanks Damjan! Pleasure :)