When setting Style properties on a RichText that contains only ".", or "\r" or "\n" or combinations of the above you get an error when opening the excel file and you have to recover the document.
E.g.
If you have a cell with the value: "Test...Test", if you set the style with: cell.RichText.Substring(5,1).SetStrikethrough() you will receive the error when opening the file. The same thing happens for example with SetBold() or SetFontColor().
FYI, I'm implementing some string comparing feature and I want to highlight the differences between two strings. There are some cases in which the strings differ by only a dot, so it makes sense to highlight only that.
Comments: Please try the latest version of ClosedXML (v0.87.1 at this stage). If you still experience the issue, log it on the new GitHub page.
E.g.
If you have a cell with the value: "Test...Test", if you set the style with: cell.RichText.Substring(5,1).SetStrikethrough() you will receive the error when opening the file. The same thing happens for example with SetBold() or SetFontColor().
FYI, I'm implementing some string comparing feature and I want to highlight the differences between two strings. There are some cases in which the strings differ by only a dot, so it makes sense to highlight only that.
Comments: Please try the latest version of ClosedXML (v0.87.1 at this stage). If you still experience the issue, log it on the new GitHub page.