You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was pulling content from an existing spreadsheet and noticed two cells which have content, but returned an empty string from cell.GetRawValue() and cell.GetString(). After digging into the raw xml, I noticed that the shared string for it looked like:
I figured the runs were the issue. I dug through the code, and while RichTextRun exists, it doesn't seem to be used anywhere. I also inspected all attributes on cell.X() (sml.CT_Cell) and couldn't find the runs anywhere. It appears that RichTextRuns are not even being parsed in to the CT_Cell from what I can tell.
Expected Behavior
GetFormattedValue() should not be empty when a cell has content displayed in Excel. Ideally GetString() would be updated to return a plaintext version of the content, though according to how GetString is documented, it is currently working as expected.
Actual Behavior
GetFormattedValue() returns and empty string for cells with RichTextRuns. There is also no method that I was able to find to access the raw RichTextRun content directly through cell.X().
I've attached a shreadsheet with RichTextRun content in A1: wb.xlsx.
The text was updated successfully, but these errors were encountered:
Description
I was pulling content from an existing spreadsheet and noticed two cells which have content, but returned an empty string from
cell.GetRawValue()
andcell.GetString()
. After digging into the raw xml, I noticed that the shared string for it looked like:I figured the runs were the issue. I dug through the code, and while RichTextRun exists, it doesn't seem to be used anywhere. I also inspected all attributes on
cell.X()
(sml.CT_Cell
) and couldn't find the runs anywhere. It appears that RichTextRuns are not even being parsed in to theCT_Cell
from what I can tell.Expected Behavior
GetFormattedValue()
should not be empty when a cell has content displayed in Excel. IdeallyGetString()
would be updated to return a plaintext version of the content, though according to howGetString
is documented, it is currently working as expected.Actual Behavior
GetFormattedValue()
returns and empty string for cells with RichTextRuns. There is also no method that I was able to find to access the raw RichTextRun content directly throughcell.X()
.I've attached a shreadsheet with RichTextRun content in A1: wb.xlsx.
The text was updated successfully, but these errors were encountered: