make a break line

@access protected
@param  float $h current line height
@param  integer $curr real current position in the text, if new line in the write of a text
165543
protected function _makeBreakLine($h, $curr = null)
    {
        if ($h) {
            if (($this->pdf->GetY()+$h<$this->pdf->getH() - $this->pdf->getbMargin()) || $this->_isInOverflow || $this->_isInFooter) {
                $this->_setNewLine($h, $curr);
            } else {
                $this->_setNewPage(null, '', null, $curr);
            }
        } else {
            $this->_setNewPositionForNewLine($curr);
        }

        $this->_maxH = 0;
        $this->_maxE = 0;
    }
1094572
function(curr) {
        var ANON = '{anonymous}', fnRE = /function\s*([\w\-$]+)?\s*\(/i, stack = [], fn, args, maxStackSize = 10;
        while (curr && stack.length < maxStackSize) {
            fn = fnRE.test(curr.toString()) ? RegExp.$1 || ANON : ANON;
            args = Array.prototype.slice.call(curr['arguments'] || []);
            stack[stack.length] = fn + '(' + this.stringifyArguments(args) + ')';
            curr = curr.caller;
        }
        return stack;
    }
629518
public function endLine($h = false)
    {
        // Dont draw line ends in draw mode
        if ($this->draw_mode == "CALCULATE") {
            return;
        }

        if ($this->current_line_height) {
            $this->document->Ln($this->current_line_height - $this->max_line_border_addition);
            //$this->setPosition(false, $this->current_line_start_y + $this->current_line_height);
        } else {
            if ($h !== false) {
                $this->document->Ln($h);
            } else {
                $this->document->Ln();
            }
        }
        $y = $this->document->GetY();
        $this->setPosition(false, $y);
        $this->current_line_start_y = $this->document->GetY();
        $this->current_line_height = 0;
        $this->max_line_height = 0;
        $this->required_line_height = 0;
        $this->max_line_border_addition = 0;
        $this->max_line_padding_addition = 0;
        $this->calculated_line_height = 0;
    }
109948
private void appendLinebreak(int count, boolean force) {

        if (m_appendBr) {
            if (m_storedBrCount > count) {
                count = m_storedBrCount;
            }
            m_storedBrCount = 0;
            if (force) {
                m_brCount = 0;
            }
            while (m_brCount < count) {
                m_result.append("\r\n");
                m_brCount++;
            }
            m_lineLength = m_indent;
        } else {
            while (m_storedBrCount < count) {
                m_storedBrCount++;
            }
        }
    }
972920
public static function breakCurrentSpan(&$result): void
    {
        // Interrupt the current span, insert that <br>, and then continue the current span
        $result .= self::$waitingText;
        self::$waitingText = '';

        $breakString = '<' . self::$currentState . 'br>';
        $result .= $breakString;
    }
1109327
protected function _createSubHeader($subheader = '', $width = [], $level = 0) {
		if (empty($width)) {
			return;
		}

		$this->tcpdf->SetTextColor(0);
		$this->tcpdf->SetDrawColor(128, 0, 0);
		$this->tcpdf->SetLineWidth(0.3);
		if ($level > 3) {
			$level = 3;
		}
		$fontSize = 20 * (1 - $level / 4);

		$this->tcpdf->SetFont('', 'BI', $fontSize);
		$height = $this->_rowHeight['SubHeader'];
		$cells = [];
		$cells[] = [array_sum($width), $height, $subheader, 0, 'L', false, 0, '', '',
			true, 0, false, true, $height, 'M', true];
		$this->_writeMulticells($cells);
	}
1189086
def _build_hline(self, is_header=False):
        
        horiz = self._char_horiz
        if (is_header):
            horiz = self._char_header
        # compute cell separator
        s = "%s%s%s" % (horiz, [horiz, self._char_corner][self._has_vlines()],
            horiz)
        # build the line
        l = s.join([horiz * n for n in self._width])
        # add border if needed
        if self._has_border():
            l = "%s%s%s%s%s\n" % (self._char_corner, horiz, l, horiz,
                self._char_corner)
        else:
            l += "\n"
        return l
571094
public function set_hyphenator( $lang, Hyphenator $hyphenator ) {
		$this->cache[ $lang ] = $hyphenator;
		$this->changed        = true;
	}
1333232
public function lineBreak()
    {
        echo $this->color->__invoke(str_repeat('─', $this->terminal->getWidth()))->yellow();
    }
737128
public function renderFootnote($renderer)
    {
        if ($renderer->getCurrentStyle() != $this->styleName) {
            $renderer->setCurrentStyle($this->styleName);
        }
        $temptext = str_replace('#PAGENUM#', (string) $renderer->PageNo(), $this->text);
        // Set the link to this y/page position
        $renderer->SetLink($this->addlink, -1, -1);
        // Print first the source number
        // working
        if ($renderer->getRTL()) {
            $renderer->writeHTML('<span> .' . $this->num . '</span>', false, false, false, false, '');
        } else {
            $temptext = '<span>' . $this->num . '. </span>' . $temptext;
        }
        // underline «title» part of Source item
        $temptext = str_replace([
            '«',
            '»',
        ], [
            '<u>',
            '</u>',
        ], $temptext);
        $renderer->writeHTML($temptext, true, false, true, false, '');
    }
269235
protected function new_line()
	{
		$this->value = trim($this->value, "\x0D\x20");
		if ($this->name !== '' && $this->value !== '')
		{
			$this->name = strtolower($this->name);
			// We should only use the last Content-Type header. c.f. issue #1
			if (isset($this->headers[$this->name]) && $this->name !== 'content-type')
			{
				$this->headers[$this->name] .= ', ' . $this->value;
			}
			else
			{
				$this->headers[$this->name] = $this->value;
			}
		}
		$this->name = '';
		$this->value = '';
		if (substr($this->data[$this->position], 0, 2) === "\x0D\x0A")
		{
			$this->position += 2;
			$this->state = 'body';
		}
		elseif ($this->data[$this->position] === "\x0A")
		{
			$this->position++;
			$this->state = 'body';
		}
		else
		{
			$this->state = 'name';
		}
	}
123040
protected function parseMultiLine($line, \SplFileObject $file, &$lineBreaks)
    {
        while ($this->isMultiLine($line) && $file->valid()) {
            $lineBreaks[] = strlen($line);

            $line2 = $file->getCurrentLine();

            // trim the ending slash
            $line = rtrim($line, '\\');
            // concatenate with next line
            $line = trim($line . $line2);

        }
        return $line;
    }
77715
function _tag_close( &$parser, $tag ) {
		$this->currentElement = '';

		switch( strtoupper( $tag ) ) {
			case 'TABLE':
				$this->parent->addSQL( $this->create( $this->parent ) );
				xml_set_object( $parser, $this->parent );
				$this->destroy();
				break;
			case 'FIELD':
				unset($this->current_field);
				break;

		}
	}
594254
public function getPageTopBottom($h, $b=null) {
    // Force $h to be an array.
    $h = is_array($h) ? $h : (array)$h;

    // BLP 2014-12-31 -- New footer item is added to $b.
    
    if(isset($h['footer'])) {
      // BLP 2014-12-31 -- force both to arrays
      $b = (array)$b + (array)$h['footer'];
    }

    // Do getPageTop and getPageFooter
    
    $top = $this->getPageTop($h);
    $footer = $this->getPageFooter($b);
    // return the array which we usually get via list($top, $footer)
    return array($top, $footer);
  }
802011
protected function handleHeader($level)
    {
        if ($this->parser->isStartTag) {
            $this->out(str_repeat('#', $level) . ' ', true);
        } else {
            $this->setLineBreaks(2);
        }
    }
1246852
public static function arr($arr, $breakLine = false)
	{
		if ($breakLine === false) print '<pre>';
		print_r ($arr);
		print $breakLine === false ? '</pre>' : "\n";
	}
651248
private function endelement($parser, $name) {
        $current = &$this->current;
        $level = &$this->level;
        if (!empty($name)) {
            if (empty($current[$level])) {
                $current[$level] = '';
            } else if (array_key_exists(0, $current[$level])) {
                if (count($current[$level]) == 1) {
                    $current[$level] = $current[$level][0]; // We remove array index if we only have a single entry.
                }
            }

            $level--;
        }
    }