add_field doesn't replace fields inside layout tables
FineLineAutomation opened this issue · 3 comments
In my odt file, I used some tables for laying out a multi-column header layout. Inside the table is some fields to be replaced. The table is just used for layout and not displaying a collection. The fields inside the table are not replaced by the replace_fields method. If I move the fields outside of the layout table, they are properly replaced.
Is this by design? If so, is there another way to get a multi-column layout for an ODF document besides using tables that will properly generate the replaced fields?
Let me know if you want the odt file and controller code.
The more I think about it, the solution might be a global fields set that gets globally replaced across all structures.
No, this is not by design. What version are you using? The packed gem or directly from master?
Nevermind. Turns out that my ODT was screwed up and there were tags separating the field names. It seems that a document solely created with OpenOffice or LibreOffice is the best way to go because this was a converted Word document.