HyperFluxCMS

Fast. Flexible. Free.

HyperFluxCMS

Lines and paragraphs

See how HyperFluxCMS manages lines and paragraphs

published 01/01/2025 14:06, updated 04/13/2026 22:37

HyperFluxCMS automatically handles line breaks and HTML paragraph generation. Understand how this works.

If you have ever manually edited an HTML file, you know that text is displayed in a single continuous line, breaking automatically where necessary, even if the source code has line breaks and blank lines.

For example, in HTML

lorem ipsum
dolor sit amet

consectetuer pro
adispiscin elit

is displayed as

lorem ipsum dolor sit amet consectetuer pro adispiscin elit

To force a line break, it is necessary to insert the <br> tag at the desired location.

To divide text into paragraphs, it is necessary to explicitly use the paragraph start and end tags <p> and </p>.

HyperFluxCMS automatically handles line breaks and paragraphs, inserting HTML tags as necessary.

The same text above is understood by HyperFluxCMS as

<start of new paragraph>
lorem ipsum <line break>
dolor sit amet <end of paragraph>

<start of new paragraph>
consectetuer pro <line break>
adispiscin elit <end of paragraph>

A line break inserted manually in the text is treated as a line break and generates a <br> tag.

A start of text when there is no open paragraph is understood as the start of a paragraph and generates the <p> tag.

A blank line (or two consecutive line breaks) is understood as the end of a paragraph and generates the </p> tag.

If there is more than one consecutive blank line, only one is considered. The rest are ignored. If you really want to leave multiple blank lines, use the HyperCode [blank] tag.

For example, to leave 3 blank lines, use [blank="3"] or [blank lines="3"]

Note that this only applies to line breaks intentionally inserted using the "Enter" key. If you are editing the text on the site, and the text automatically wraps to the next line because the line has reached the maximum field limit for editing, the text continues to be treated as a single line, without the manual break.

However, if you are using HTML code created using some specific editor or imported from another site, and that code already contains line break and paragraph tags, using them together with the automatic break performed by HyperFluxCMS can generate weird results.

In such cases, it may be convenient to disable the default automatic line break handling, via page configuration or with the tag

[pragma manuallinebreaks="true" keepcrlfaftertags="true"]

There are also cases where an intentional line break ends up not being interpreted by HyperFluxCMS. Usually after closing some HyperCode tags. For example, after using an [img] tag, even with line breaks, the following text (or image or other element) may still appear stuck to the image, instead of on a new line/paragraph. This can be circumvented by inserting a [blank] tag to force a line break.

Understand better at Automatic Line Breaks in HTML.

Also see Avoiding Automatic Line Breaks.