@@ -53,18 +53,33 @@ the entire paragraph. For the following text, all lines will be centred:
5353
5454.. code-block :: md
5555
56- >> I am the very model of a modern Major-General
56+ >> I am the very model of a modern Major-General <<
5757 I've information vegetable, animal, and mineral
5858 I know the kings of England, and I quote the fights historical
59- From Marathon to Waterloo, in order categorical <<
59+ From Marathon to Waterloo, in order categorical
60+
61+ If you have multiple conflicting alignments on a paragraph, only one is applied. The order of
62+ precedence is:
63+
64+ #. Left alignment
65+ #. Right alignment
66+ #. Centred text
67+ #. Justified text
68+
69+ .. note ::
70+
71+ It is strongly recommended that you keep the **Preserve Hard Line Breaks ** setting enabled in
72+ your manuscript build settings. This setting assumes all single line breaks in your text are
73+ intended. Turning this off makes adding line breaks more complicated, but it is still possible.
74+ See :ref: `docs_usage_align_indent_forced `.
6075
6176
6277Alignment with First Line Indent
6378================================
6479
6580If you have first line indent enabled in your manuscript build settings, you probably want to
66- disable it for text in verses. Adding any alignment tags will cause the first line indent to be
67- switched off for that paragraph.
81+ disable it for text in verses. Adding any alignment tags on a paragraph will cause the first
82+ line indent to be switched off for that paragraph.
6883
6984:bdg-info: `Example `
7085
@@ -76,3 +91,35 @@ The following text will always be aligned against the left margin:
7691 I've information vegetable, animal, and mineral
7792 I know the kings of England, and I quote the fights historical
7893 From Marathon to Waterloo, in order categorical
94+
95+
96+ .. _docs_usage_align_indent_forced :
97+
98+ Alignment with Forced Line Breaks
99+ =================================
100+
101+ If you turn off **Preserve Hard Line Breaks ** in your manuscript build settings, you can still
102+ force line breaks in paragraphs using the ``[br] `` shortcode. For clarity in the text, you can add
103+ a line break after it as well. It doesn't result in two line breaks.
104+
105+ Keep in mind that when the text is processed, the lines on either side of a ``[br] `` shortcode are
106+ combined, and any trailing hard line break is *ignored *. This means that when such a paragraph is
107+ processed, these line breaks count as the same line. This affects how alignment tags are handled.
108+ For instance, this text becomes centred instead of left aligned.
109+
110+ .. code-block :: md
111+
112+ >> I am the very model of a modern Major-General[br]
113+ I've information vegetable, animal, and mineral[br]
114+ I know the kings of England, and I quote the fights historical[br]
115+ From Marathon to Waterloo, in order categorical <<
116+
117+ Since this is understood as one line, this is the only way you can actually centre this paragraph.
118+
119+ .. caution ::
120+
121+ Due to this difference in how text with ``[br] `` tags are processed, it is generally better to
122+ stick with the **Preserve Hard Line Breaks ** setting enabled. It ensures a better correspondence
123+ between what you see in the editor and what output you get.
124+
125+ See also :ref: `docs_usage_formatting_shortcodes_break `.
0 commit comments