Description: I have two styles, used for setting poetry, that involve a Before Text indent of .30" and a First Line indent of -.30"; this results in the rather infrequent runover lines being hung. For the paperback version, LibreOffice works flawlessly to do this. This hanging indentation is also important for books output to ePub so that, if read on a smaller device or in larger type, the runover lines will be clear. Runover lines occur far more frequently on digitally read devices. According to what I am reading, checking the Automatic box beneath these settings will result in the First Line setting being ignored. That's not what I want. But with the Automatic box UNchecked, the negative First Line indent is still ignored, resulting in all lines starting with a .30" indentation and the first line not pulled back to the left by -.30". FORMATTING, EPUB, EXPORT Steps to Reproduce: 1. Set up a NewLine paragraph style with Before Text .30", After Text .00", and First Indent -.30"; uncheck Automatic. 2. Apply style to several lines of text that extend past the document margins. 3. Export to ePub (2.0 or 3.0 does not matter) using Page Break segmenting. 4. View the ePub output. Actual Results: Title First line of poem that extends past the margin that should be hung. Expected Results: Title First line of poem that extends past the margin that should be hung. Reproducible: Always User Profile Reset: No Additional Info: It seems this is only due to a failure of the ePub output module to recognize the status of the Automatic check box; instead of reading First Line indent when unchecked, it ignores it whether unchecked or not and reads only the Before Text setting (which, in this example, indents (hangs) all lines, not just any runovers past the first line). From Help - Libre Office: Indent Before text Enter the amount of space that you want to indent the paragraph from the page margin. If you want the paragraph to extend into the page margin, enter a negative number. In Left-to-Right languages, the left edge of the paragraph is indented with respect to the left page margin. In Right-to-Left languages, the right edge of the paragraph is indented with respect to the right page margin. After text Enter the amount of space that you want to indent the paragraph from the page margin. If you want the paragraph to extend into the page margin, enter a negative number. In Left-to-Right languages, the right edge of the paragraph is indented with respect to the right page margin. In Right-to-Left languages, the left edge of the paragraph is indented with respect to the left page margin. First line Indents the first line of a paragraph by the amount that you enter. >>>>To create a hanging indent enter a positive value for "Before text" and a negative value for "First line".<<<< To indent the first line of a paragraph that uses numbering or bullets, choose "Format - Bullets and Numbering - Position". Automatic Automatically indents a paragraph according to the font size and the line spacing. The setting in the First Line box is ignored.
I get theo following result: Title First line of poem that extends past the margin that should be hung. Tested with Version: 7.2.3.1 (x64) / LibreOffice Community Build ID: 1d5dee817bde88d78dbcc0d00f88492568e131d5 CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL So wrong in any way, but there shouldn't be differnet results. Could you please add a sample odt-file with your styles? Thank you => NEEDINFO
Created attachment 176318 [details] ePub export of poetry odt The ePub export from the ODT file employing hanging-indentation styles NewLine and NewStanza does not suppress the First Line indentation, as first reported. However, the runover lines ARE hung, which is different from first reported. The first lines should set to the left margin and not be indented.
Created attachment 176319 [details] ODT file with styles and ePub output The two files show the ODT file exported to ePub. As originally reported, the Ignore First Line indent setting is ignored. However, unlike originally reported, the runover lines DO hang. So the only thing wrong is each line styled with either NewLine or NewStanza should set flush to the left margin (as the headings and subheadings now do).
Comment on attachment 176318 [details] ePub export of poetry odt This attachment apparently did not upload properly.
I have uploaded a zipped file containing both ODT and ePub files to show the bug. The styles in question are NewLine and NewStanza.
Thank you for your document I confirm the problem. Steps to make it more visible 1. Open odt-file from attachment 176319 [details] 2. Go to page 5 3. Change paragraph style of the first verse (indent Before text 0cm; first line -1cm) 4. Export to Epub Result: First line has intent 0cm Ive treid to reproduce with an new document and changed first line indent or default paragraph style to -1cm, but that worked.
Currently, it is not really possible to test this bug, because of this other bug: https://bugs.documentfoundation.org/show_bug.cgi?id=119112 Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: e9374f74385d7dfe77d1902d3d82af20143bc775 CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win Locale: fr-FR (fr_FR); UI: fr-FR Calc: threaded
Created attachment 196780 [details] screenshot Looks good to me in 25.2. See the screenshot. Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 0e955c4b236bcf9e66e7b49cc3ae285f1a4a9e32 CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded