Ask Your Question

Can I truncate long lines in a table, rather than linebreaking them?

asked 2017-09-06 10:57:25 +0200

Arvid gravatar image

I want to keep the table size static because it is to be machine read. Long lines cause line breaks which increases the height of the row. I would rather truncate the long lines. Is this possible?

edit retag flag offensive close merge delete


Are your "lines"cell contents?
Where do they come from? Why don't you care for shorter lines from the beginning if much of the content is somehow irrelevent (doesn't need to be printed / machine read)?
Why should info get processed by a chain of printing / automatic reading? It's error-prone.

Lupp gravatar imageLupp ( 2017-09-06 11:31:27 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2017-09-06 11:32:53 +0200

Lupp gravatar image

updated 2017-09-06 11:36:09 +0200

You may try fix row height. Choose an appropriate value depending on your font size / paragraph properties.

To clip the oversized cell contents permanently follow the advice by @pierre-yves samyn .

edit flag offensive delete link more


Thanks, that seems to be the best way.

Arvid gravatar imageArvid ( 2017-09-06 12:01:03 +0200 )edit

answered 2017-09-06 11:15:33 +0200

pierre-yves samyn gravatar image


If I understand well you can do EditFind & Replace

  • Find (.{0,30}).* where e.g. 30 is the maximum number of characters
  • Replace $1
  • Other options:
    • Current selection only (if needed)
    • Tick Regular expressions


edit flag offensive delete link more


Hi, thanks for you suggestion. That would work, but it's a bit too much work for me. :)

I was hoping for something that worked automatically, for different column widths and fonts.

Arvid gravatar imageArvid ( 2017-09-06 11:35:16 +0200 )edit

answered 2017-09-06 11:37:16 +0200

updated 2017-09-06 11:37:44 +0200

By default, tables in Writer have automatically growing row heights.

To change that setting for a table, select the rows you want to be fixed-height (possibly whole table), menu Table-Size-Row Height..., and uncheck Fit to size. Then you'll need to define required height of the row manually. This will truncate everything that doesn't fit into the cell.

edit flag offensive delete link more


Thank you!

Arvid gravatar imageArvid ( 2017-09-06 12:01:25 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-06 10:57:25 +0200

Seen: 71 times

Last updated: Sep 06 '17