You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
pollen-tfl/hard-line-breaks.html.pm

24 lines
1.1 KiB
Perl

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#lang pollen
(define-meta title "hard line breaks")
hanging-topic[(topic-from-metas metas)]{Exactly one at a time}
The em{hard line break} moves the next word to the beginning of a new line without starting a new paragraph.
A hard line break can help control text flow when a carriage return wont work. For instance, this heading breaks awkwardly:
indented{strong{IV.   The defendant is entitled to judgment as a matter of
law.}}
Suppose you want the line to break after em{judgment}. That way, the first line will end in a more logical place and the two lines will be balanced. If you use a xref{carriage return}, youll get:
captioned["wrong"]{strong{IV.   The defendant is entitled to judgment
V.   as a matter of law.}}
Not what you hoped. Instead, put a hard line break after em{judgment}:
captioned["right"]{strong{IV.   The defendant is entitled to
judgment as a matter of law.}}
Hard line breaks are also useful for separating the lines of an address (for instance, on xref{letterhead} or a xref{caption page}). See xref{centered text} for another example of the hard line break in use.