Files
luos/gulliver/thirdparty/html2ps_pdf/inline.content.builder.pre.php
Victor Saisa Lopez 6d9858d6d0 HOR-1738 "Change folder permissions in ProcessMaker" SOLVED
Issue:
    Change folder permissions in ProcessMaker
Cause:
    Nuevo requerimiento
Solution:
    Se cambio los permisos de los files and directories
2016-08-30 13:03:35 -04:00

30 lines
766 B
PHP

<?php
require_once(HTML2PS_DIR.'inline.content.builder.php');
class InlineContentBuilderPre extends InlineContentBuilder {
function InlineContentBuilderPre() {
$this->InlineContentBuilder();
}
/**
* CSS 2.1 16.6 Whitespace: the 'white-space' property
*
* pre
*
* This value prevents user agents from collapsing sequences of
* whitespace. Lines are only broken at newlines in the source, or
* at occurrences of "\A" in generated content.
*/
function build(&$box, $text, &$pipeline) {
$text = $this->remove_trailing_linefeeds($text);
$lines = $this->break_into_lines($text);
foreach ($lines as $line) {
$box->process_word($line, $pipeline);
$this->add_line_break($box, $pipeline);
};
}
}
?>