HyperFluxCMS

Fast. Flexible. Free.

HyperFluxCMS

Line breaks in em HTML

Coping with HTML and automatic line breaks

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

The automatic paragraph and line break generation feature greatly facilitates text editing. But it can generate undesirable results when importing pages already written in HTML. See how to deal with this situation.

Although it is a great feature for editing text content, the main function for which HyperFluxCMS was developed, automatic line breaking has its disadvantages.

The main one is that, when used with HTML, for example, when you want to reuse content from an already written page, there may be a conflict between the line breaks of the text and HTML tags, causing HyperFluxCMS to be unable to understand the true intention of where breaks should or should not be, generating a strange appearance, with missing or extra paragraphs or line breaks.

For this, if the edited page already has its own HTML formatting, automatic line break generation must be disabled.

This can be done in two ways:
a) In the page configuration, checking the "disable automatic line break" option; or
b) Inserting, in the page source code, the tag
[pragma manuallinebreaks="true" keepcrlfaftertags="true"].

Using option a, automatic line break generation is disabled on the entire page.

Using option b, it is disabled from that point forward, but can be re-enabled again when desired by inserting the tag
[pragma manuallinebreaks="false" keepcrlfaftertags="false"]