diff --git a/src/printer.js b/src/printer.js index f0bf26687..445b9baae 100644 --- a/src/printer.js +++ b/src/printer.js @@ -1034,10 +1034,13 @@ function printLines(path, options, print, childrenAttribute = "children") { } if (isInlineNode) { - const openTag = - nextNode && nextNode.kind === "echo" && nextNode.shortForm - ? ""])); + return; + } + const openTag = shortOpenTag ? " + +=====================================output===================================== + + +================================================================================ +`; diff --git a/tests/inline/shorthand-2.php b/tests/inline/shorthand-2.php new file mode 100644 index 000000000..07c01c848 --- /dev/null +++ b/tests/inline/shorthand-2.php @@ -0,0 +1 @@ +