You are here

protected function OutputRules::nl in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php \Masterminds\HTML5\Serializer\OutputRules::nl()

Write a new line character.

Return value

\Masterminds\HTML5\Serializer\Traverser $this so it can be used in chaining.

2 calls to OutputRules::nl()
OutputRules::doctype in vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php
OutputRules::document in vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php
Write a document element (\DOMDocument).

File

vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php, line 453
The rules for generating output in the serializer.

Class

OutputRules
Generate the output html5 based on element rules.

Namespace

Masterminds\HTML5\Serializer

Code

protected function nl() {
  fwrite($this->out, PHP_EOL);
  return $this;
}