1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00

Fix indentation fix for InlineHTML printing

This commit is contained in:
nikic 2011-06-02 23:05:14 +02:00
parent 74f05f5459
commit eaffc0073c

View File

@ -605,8 +605,10 @@ class PrettyPrinter_Zend extends PrettyPrinterAbstract
}
public function pStmt_InlineHTML(Node_Stmt_InlineHTML $node) {
return '?>' . ("\n" === $node->value[0] || "\r" === $node->value[0] ? "\n" : '')
. $this->pSafe($node->value) . '<?php ';
return '?>' . $this->pSafe(
("\n" === $node->value[0] || "\r" === $node->value[0] ? "\n" : '')
. $node->value
) . '<?php ';
}
// Helpers