mPDF Manual – mPDF Variables

justifyB4br

(mPDF >= 4.4)

justifyB4br – Specify whether to justify line of text beofre a linebreak

Description

void justifyB4br

Specify whether to justify line of text beofre a linebreak. This only makes a difference when the text-alignment of the current block is set as “text-align: justify”.

In a justified text block, a <br> linebreak will not cause the preceding line to be justified. This behaviour matches most browsers. However, to allow optional compliance with the behaviour of MS Word, which also justifies text before a <br> you can set this variable to TRUE.

Values

$justifyB4brTRUE FALSE

Values

TRUE : justify line of text beofre a linebreak

FALSE: do not justify line of text beofre a linebreak

DEFAULT: FALSE

Changelog

VersionDescription
4.4 Variable was added.