Frame around paragraph extends to embedded object of previous paragraph

Consider the attached document. There are two paragraphs. The first contains an embedded object (a table in this case) anchored to that paragraph and configured such that it is shown below that paragraph (without floating). The second paragraph below the first one (and below the table) is configured to have a visible border. For some reason, the border is extended to include the table:


Is there any way to make the border not include the table (which is supposed to “belong” to the first paragraph, not the second)?

odt-Document: test.odt (15.7 KB)

LO version:
Version: 25.8.3.2 (X86_64) / LibreOffice Community
Build ID: 580(Build:2)
CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: qt6 (cairo+xcb)
Locale: en-US (de_DE.UTF-8); UI: de-DE
Calc: threaded

Your “table” is in fact a Drawing Object. Drawing objects interact quite erratically with text. They are intended for small decorations when you can’t obtain the same effect with standard text features. In addition formatting drawing objects is cumbersome because you can’t use styles (both on the object itself to get automatic repositioning and inside it on text).

I think this is an example where Writer has difficulty to relate the drawing object with its paragraph and compute the bounding rectangle to your expectation.

I’d rather suggest you Insert >Table at the end of the first paragraph. Then you have a primary Writer object (a table) which is nicely managed in the text flow.

For your own peace of mind, select None style when creating your table to avoid bad “surprises” when the table decides to repaint itself without your explicit consent.

PS: when asking here, always mention OS name, exact LO version (not “latest” which does not mean anything) and save format (inferred to be .odt according to the sample).

Thanks for your response. Actually, there is a good reason that the table is a “Drawing Object” … in the real use-case those objects come from external documents and recreating them in writer is not really an option (it might be possible for that small table, but that is just an example).

I added the missing information to the first post.

Are they images? Images could be easier to fix because you can apply a frame style to them.

No, complex tables, drawings, text boxes, ole-objects of all kind etc.

You could

  1. Add an empty paragraph below the first paragraph
  2. Select the table and drag it to the empty paragraph (if it doesn’t occupy the new space automatically)
  3. Right click the table and click Anchor > As Character
  4. (Optional) Right click table, select Properties > Wrap and set the Spacing > Bottom to 0.2 cm or 0.3 cm