mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 11:06:15 +08:00
re #44 improve previous fix for #44 and solve issue from https://cw.sdn.sap.com/cw/thread/15813?tstart=0. Cell value node should be created only in case there is non-zero length value string. This mimics Excel behavior which also omits this node for cells which have just style or formula.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@108 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
This commit is contained in:
parent
346a9ac6c6
commit
be4d8fe6e7
|
@ -2140,7 +2140,7 @@ endmethod.</source>
|
||||||
lv_value = <ls_sheet_content>-cell_formula.
|
lv_value = <ls_sheet_content>-cell_formula.
|
||||||
lo_element_4->set_value( value = lv_value ).
|
lo_element_4->set_value( value = lv_value ).
|
||||||
lo_element_3->append_child( new_child = lo_element_4 ). " fomula node
|
lo_element_3->append_child( new_child = lo_element_4 ). " fomula node
|
||||||
ELSE.
|
ELSEIF <ls_sheet_content>-cell_value IS NOT INITIAL. "cell can have just style or formula
|
||||||
IF <ls_sheet_content>-data_type IS NOT INITIAL.
|
IF <ls_sheet_content>-data_type IS NOT INITIAL.
|
||||||
lo_element_3->set_attribute_ns( name = lc_xml_attr_t
|
lo_element_3->set_attribute_ns( name = lc_xml_attr_t
|
||||||
value = <ls_sheet_content>-data_type ).
|
value = <ls_sheet_content>-data_type ).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user