I am trying to compile a book for ePub (windows 10, latest scriv 3) using default Epub 3 copied to My Projects so I can edit it.
I want only the first line to not be indented in a chapter, and not any paragraphs later on if they come after blank lines (it currently removes the indent of a paragraph if it comes after a blank line) I wanted to make this change in compile not by using styles. (I currently have “no styles” set for most text in the scriv editor chapters).
I am using “Section with Titles” for my chapters (Scriv scenes) and I have changed nothing else other than add Front and Back Matter. I thought I could use Text Layout to fix the formatting how I need it.
In the compile window editor in “Text Layout” I uncheck “From All Paragraphs Following Other Elements” and it compiles okay.
I then uncheck “From Paragraphs After Blank Lines” and that compiles okay.
Then I check “From First Regular Paragraph in each Chapter” and the formatting goes weird with huge text.
I am not sure what else is being impacted, but when looking at the HTML in Sigil I see the following in the CSS:
This before checking “From First Regular Paragraph in each Chapter”:
/* Direct formatting styles */
.ps1 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps2 {font-family: 'GaramondNo8'; font-size: 4.00rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
and this after:
/* Direct formatting styles */
.ps1 { text-indent: 0rem; }
/* Direct formatting styles */
.ps1 {font-family: 'GaramondNo8'; font-size: 4.00rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps2 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-indent: 0rem}
So I now have huge text for the first paragraph.
There are also impacts on all other pages including the title page where all the spacing has changed between lines.
Is this a bug or am I misunderstanding the use of this “From First Regular Paragraph in each Chapter” option in “Text Layout”?
EDIT: I just spotted some other things it changes in the styles :
This is before I check "From First Regular Paragraph In Each Chapter:
/* Direct formatting styles */
.ps1 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps2 {font-family: 'GaramondNo8'; font-size: 4.00rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps3 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-indent: 0rem}
.ps4 {font-family: 'GaramondNo8'; font-size: 1.50rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps5 {margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps6 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-bottom: 0.83rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps7 {margin-left: 0rem; text-indent: 1.50rem}
.ps8 {font-family: 'Cambria'; font-size: 1.00rem; margin-left: 0rem; text-indent: 1.50rem}
.ps9 {margin-left: 0rem; text-align: center; text-indent: 1.50rem}
.ps10 {font-family: 'Cambria'; font-size: 1.00rem; font-style: italic; margin-left: 0rem; text-align: center; text-indent: 1.50rem}
.ps11 {margin-left: 0rem; text-indent: 0rem}
.ps12 {font-family: 'Cambria'; font-size: 1.00rem; font-style: italic; margin-left: 0rem; text-indent: 1.50rem}
.ps13 {font-family: 'GaramondNo8'; font-size: 1.00rem; font-style: italic; margin-bottom: 0.83rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps14 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-indent: 3.00rem}
.ps15 {font-family: 'GaramondNo8'; font-size: 1.00rem; font-style: italic; margin-left: 0rem; text-indent: 3.00rem}
and this is after I check it:
/* Direct formatting styles */
.ps1 {font-family: 'GaramondNo8'; font-size: 4.00rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps2 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-indent: 0rem}
.ps3 {font-family: 'GaramondNo8'; font-size: 1.50rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps4 {margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps5 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-bottom: 0.83rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps6 {margin-left: 0rem; text-indent: 1.50rem}
.ps7 {font-family: 'Cambria'; font-size: 1.00rem; margin-left: 0rem; text-indent: 1.50rem}
.ps8 {margin-left: 0rem; text-align: center; text-indent: 1.50rem}
.ps9 {font-family: 'Cambria'; font-size: 1.00rem; font-style: italic; margin-left: 0rem; text-align: center; text-indent: 1.50rem}
.ps10 {font-family: 'Cambria'; font-size: 1.00rem; font-style: italic; margin-left: 0rem; text-indent: 1.50rem}
.ps11 {font-family: 'GaramondNo8'; font-size: 1.00rem; font-style: italic; margin-bottom: 0.83rem; margin-left: 0rem; text-align: center; text-indent: 0rem}
.ps12 {margin-left: 0rem; text-indent: 0rem}
.ps13 {font-family: 'GaramondNo8'; font-size: 1.00rem; margin-left: 0rem; text-indent: 3.00rem}
.ps14 {font-family: 'GaramondNo8'; font-size: 1.00rem; font-style: italic; margin-left: 0rem; text-indent: 3.00rem}
From mucking about with it I think the problem only happens when there is a combination of:
“From first regular paragraph in each chapter” checked
and
“From paragraphs after blank lines” unchecked
which unfortunately is what I need.