XML technologies / ePUB / ePub für (In)Designer / Text / Cleaning text / Line breaks

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

E-books have no true pages: ePub is a continuous text flow breaking differently on each reader. You cannot force line layout. Remove hard line breaks (Shift + Enter) to avoid surprises, except deliberately required breaks, for example in subheadings.

Finding and replacing hard line breaks

Figure: Finding and replacing hard line breaks.

Otherwise an unexpectedly short line may appear, as here at “nicht gegen die …”.

Effect of hard line breaks in ePub

Figure: Effect of hard line breaks in ePub.

CS5.5: CS5.5’s EPUB export dialog now has, under Content, an option to remove hard line breaks automatically during export.

EPUB export options: Remove hard line breaks

Figure: EPUB export options: Remove hard line breaks.

Repeated Enter presses do not create useful ePub spacing. Most readers apply a fixed gap to consecutive paragraph breaks, whether Enter was pressed five times or just once or twice. Control spacing with Space Before/Space After instead; see Adding spacing.

Do not force spacing with line breaks

Figure: Do not force spacing with line breaks.

Spacing in Digital Editions

Figure: Digital Editions always shows the same gap, regardless of the number
of line breaks.

  

 

 

 

back to top