Help:Line break
From QED
For stylistic consistency with other QED pages, it is generally preferable to use "wiki markup" (also called "wikitext") rather than HTML when entering text. However there are times when a simple line break is required. In such cases, it may be best to use <br> (or equivalently <br/>) but there are other alternatives, as described below.
If <br> does not force the kind of break you were expecting (e.g. after a table), use {{clr}} (i.e., insert {{clr}} at the desired break point).
Contents |
Line breaks using wiki markup
Two consecutive carriage returns in wikitext are equivalent to a paragraph break (<p>).
One or more of the special formatting characters (: * # =) appearing at the beginning of a line will also force one or more line breaks, e.g.
a :b
produces
a
- b
Using <pre>
For preformatted text, you may wish to use the HTML <pre> tag. This tag can be used in conjunction with QED templates as illustrated below:
<pre> a b </pre>
produces:
a b
Similarly, using the {{code}} template in conjunction with the CSS class "clear":
{{code|<pre class=clear>
a
b
</pre>
}}
produces:
a b
Line breaks within cells of a table
The techniques mentioned above may be used within a cell of a table as illustrated in the following table:
| a<br>b | a b |
| a :b | a
|
| <pre>a
b</pre> | a b |












