Unwanted empty lines

I have the same issue : after I hit return, I get the invisible character ¶ (great).
But when I compile an ebook, I get a line break after each ¶ (not great) which is not the case when I compile a PDF.
I have the exact same settings in another project and I have no issues with ebook compilation…
I can’t find how to fix that…
Thanks for your help

Split to a new thread because the old one predates the current version of Scrivener.

Creating a new line is what hitting return is supposed to do, so I’m not sure I understand the issue. Could you post a screenshot? (I’ll check your trust level to make sure you can.)

This is what I have in editor:

This is what I have on PDF:

This is on ebook:

I “fixed” the issue by pasting another project’s CSS in the custom CSS section, but I still didn’t understand why the ebook settings compiled into this…

Those are not empty lines. Select any paragraph and go here in the menus:

That takes you here:

Your paragraphs seem to have a few extra points in the last box in the eBook compile, but not in the PDF compile. That means (or should mean) that you’re using two Compile Formats, one for PDF and another for eBooks. Here’s what I mean by a Format in this context:

Personally, I use the same Format for all target file types. By pasting CSS into the ebook compile, you overrode the Format’s normal settings. That was the fix you came up with.

Thanks for your answer.
No, it’s not inter-line spacing, I have 0 in both settings, I’ve thought about that…

I indeed use different format for pdf and ebook because I need different settings for each format.

At face value, your line spacing (line height multiple) and paragraph spacing appear to be the same in your editor and PDF output (that is, you cannot distinguish what is a paragraph normally achieved by having narrower line spacing), whereas for your ebook, there is a clear distinction.

You do have inter-line spacing. You just have to find where it is, probably in one or more layouts in the ebook Format, not in the Editor.

I think the only place would be the css of the format, I don’t know how, since every other settings is not set that way…

CSS is determined by layouts and styles, unless you modify it manually (as you did).

Bonjour chez vous. :slight_smile:

From what I can see in your screenshots, the problem is not that you have extra space / empty lines, but rather that your line spacing in the epub is less for a paragraph than in the editor or in your PDF…
Likely you have a space after (or before) to your paragraphs that creates the illusion.

Fix: go to the compile format you used for your epub compile, and in the layouts, make sure the line spacing matches what you have in the editor.

image

Or remove the space after/before. (At this point, might as well remove it no matter what, as fixing the line spacing to match it makes it useless, and otherwise you don’t want it.)

image

Fix all concerned layouts.

Bonjour Vincent :blush:

Thanks for your answer. Unfortunately, the layout of the format has the same line spacing setting as the editor, and there is no space before/after set anywhere :slightly_frowning_face:

I haven’t found where this behaviors comes from, but have fixed the issue by creating a new format from scratch. I made the exact same settings and now it’s ok, I don’t know what changed :confused:

Good that it’s fixed.

Perhaps then it was due to the formatting in the CSS panel, and you’ve overridden it by pasting the CSS from your other compile format ?

If you are into finding out and willing to export and upload your broken compile format, I can investigate, see what went wrong.

Damn, I would have liked to, but I erased it. I’ll see if I can reproduce the issue, in which case I’ll send it to you, thanks! :slightly_smiling_face:

1 Like