Download it now!
Bug 113926 - A text box automatically makes word wrap, but does not write this to file
Summary: A text box automatically makes word wrap, but does not write this to file
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2017-11-18 22:35 UTC by Regina Henschel
Modified: 2019-06-21 15:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

File with text box to examine (10.88 KB, application/vnd.oasis.opendocument.presentation)
2017-11-18 22:35 UTC, Regina Henschel

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2017-11-18 22:35:05 UTC
Created attachment 137844 [details]
File with text box to examine

Open attached document and verify, that the text in the text-box wraps at the line ends.
Unzip the attached document and examine content.xml. The text-box is written as draw:frame element with a child element draw:text-box. It has assigned a style "gr1".
Examine style:graphic-properties in style "gr1". Notice, that there is no attribute fo:wrap-option. Therefore inheritance took place and the next style to look at is the parent "standard" (That is in styles.xml in <office:styles>).
Examine style:graphic-properties in style "standard". Notice, that again there is no attribute fo:wrap-option. Therefore the default style of the same family is used.
And in the style:default-style you find the attribute fo:wrap-option="no-wrap" in the graphic-properties.

From the written file, there would be not word wrap, but the text would be in one long line. That is an interoperability problem. Open the file in PowerPoint e.g.

This is aggravated by the fact that, that the user has no possibility to set explicitly word wrap. There is no UI for it.

The solution can be, to define a custom style for the object-type "text box", which has set fo:wrap-option="wrap" although there is no UI for it and use it as parent instead of standard (not so good), or make a UI for word wrap and make fo:wrap-option="wrap" the default, or write fo:wrap-option="wrap" as automatic style to all text boxes.

I have used version 5.4, but it is likely inherited from OOo.
Comment 1 Buovjaga 2017-11-19 13:35:44 UTC

Arch Linux 64-bit
Build ID: 121303615054568c204def97872343d2014af4a0
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 17th 2017
Comment 2 QA Administrators 2018-11-20 03:43:21 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2018-11-20 21:58:49 UTC
The problem still exists in Version: (x64)
Build ID: d71ea82055a6a304493c7eaa90809a348e23784d
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-19_04:56:18
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded

PowerPoint does not wrap the text. My suggestion is to set fo:wrap-option="wrap" in the default style, because that is more likely the desired behavior of text in shapes than "no-wrap".