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

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 close merge delete

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.

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

Sort by » oldest newest most voted

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 .

more

Thanks, that seems to be the best way.

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

Hi

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

Regards

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.

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

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.

more