Skip to content

#Bug of LibreOffice Writer -- UserDefinedAttributes of Table Cell ​

There is something wrong with the 'UserDefinedAttributes' of the text table when save as .odt. I write a script of Python to show the bug. Follow by step:

  1. Put the Python script to {LOROOT}/share/Scripts/python/pythonSamples/TableCellProperty.py
  2. Open an empty doc on writer.
  3. Insert table with have 6 cloums.
  4. Tools->Macros->OrgnizeMacros->Pythons...
  5. Select LibreOfficeDev Macros, on the pop dialog.
sh
  |-pythonSamples
    |-TableCellProperty
      |-SetPropertyPython
  1. Then GetPropertyPython (for show the atrributes)
  2. Save file. (There is something wring here ?)
  3. Open the file.
  4. GetPropertyPython again, the attribute of the cell('D1', 'E1') changed.

click here to down load the script of Python.

cell_attrs_1cell_attrs_2

voido of steps:

http://7xjcd4.com1.z0.glb.clouddn.com/lo_bug_cell_attr.mp4

About TableCellProperty.py ​

functions:

  1. SetPropertyPython: set the cell of A1,B1,C1 property value 'v1'

  2. GetPropertyPython: get the cell UserDefinedAttributes attribte and set the string of the cell with the value.

Resolved ​

aqcoder committed a patch related to this issue. It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=d3e57ccf2e56a75bd4f004de53793f1742e34bc4

tdf#96412 Fix export text table cell UserDefinedAttributes to xml.

It will be available in 5.2.0.

more visit: https://gerrit.libreoffice.org/#/c/20765/

基于 VitePress 构建