Bug 145512 - EPUB EXPORT: Export suppresses Setting of First Line Indent setting in specific styles (Unchecking Automatic beneath First Line Indent setting does not work)
Summary: EPUB EXPORT: Export suppresses Setting of First Line Indent setting in specif...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EPUB-Export
  Show dependency treegraph
 
Reported: 2021-11-02 19:37 UTC by dkistner
Modified: 2023-10-20 13:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ePub export of poetry odt (4.77 MB, application/epub+zip)
2021-11-17 16:52 UTC, dkistner
Details
ODT file with styles and ePub output (4.81 MB, application/zip)
2021-11-17 16:59 UTC, dkistner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dkistner 2021-11-02 19:37:48 UTC
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.
Comment 1 Dieter 2021-11-17 15:59:47 UTC
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
Comment 2 dkistner 2021-11-17 16:52:06 UTC
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.
Comment 3 dkistner 2021-11-17 16:59:08 UTC
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 4 dkistner 2021-11-17 16:59:59 UTC
Comment on attachment 176318 [details]
ePub export of poetry odt

This attachment apparently did not upload properly.
Comment 5 dkistner 2021-11-17 17:22:32 UTC
I have uploaded a zipped file containing both ODT and ePub files to show the bug. The styles in question are NewLine and NewStanza.
Comment 6 Dieter 2021-11-17 18:42:15 UTC
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.
Comment 7 Sophie Sipasseuth 2023-10-20 13:10:26 UTC
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