[
https://issues.apache.org/jira/browse/NETBEANS-5096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tomáš Procházka updated NETBEANS-5096:
--------------------------------------
Description:
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
Actual result:
{code:php}
#!/usr/bin/php
<?php
echo "Hello World!\n";
{code}
Expected result:
{code:php}
#!/usr/bin/php
<?php
echo "Hello World!\n";
{code}
was:
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
> 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
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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
> Actual result:
> {code:php}
> #!/usr/bin/php
> <?php
> echo "Hello World!\n";
> {code}
> Expected result:
> {code:php}
> #!/usr/bin/php
> <?php
> echo "Hello World!\n";
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists