You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2020/12/05 11:16:00 UTC
[jira] [Created] (NETBEANS-5096) Wrong formatting after open tag in
executable script
Tomáš Procházka created NETBEANS-5096:
-----------------------------------------
Summary: Wrong formatting after open tag in executable script
Key: NETBEANS-5096
URL: https://issues.apache.org/jira/browse/NETBEANS-5096
Project: NetBeans
Issue Type: Bug
Components: php - Formatting & Indentation
Affects Versions: 12.2
Reporter: Tomáš Procházka
Assignee: Tomáš Procházka
PHP script can be made to be directly executable when first line contains string "#!" followed by path to PHP executable (also called shebang).
{code:php}
#!/usr/bin/php
<?php
echo "Hello World!\n";
{code}
In this case blank lines after PHP open tag are applied not from "After Open Tag" but from "After open tag in HTML".
Steps to reproduce:
# Open Options and in Formatting > PHP > Blank Lines
# Set "After Open Tag" to 1
# Set "After Open Tag in HTML" to 3
# Create new file with content above
# Format file - there will be three blank lines after "<?php" and not one as expected
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists