Skip to content

Function fix_tables resets tables configured in Libreoffice Writer #472

Open

Description

@Manesx

This solved my problem:

parser = etree.XMLParser(recover=True)
tree = etree.fromstring(xml_src, parser=parser)
# tree = self.fix_tables(xml_src)

Activity

  1. cvas22 commented on Nov 25, 2026

    @cvas22

    @Manesx I think I found the cause. fix_tables counted the rows of nested tables as part of the outer table, so a table with another table inside got its columns rescaled even without tags, which LibreOffice templates often have. Fixed in docform, the maintained fork, in cvas22/docform#206, so skipping fix_tables shouldn't be needed there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions