This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255133 - HTML Formating with PHP code
Summary: HTML Formating with PHP code
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 12:20 UTC by amobilia
Modified: 2016-08-30 03:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2015-09-09 12:20:06 UTC
Example :
    <div class = "panel panel-primary">
        <div class = "panel-heading">
            <h3 class = "panel-title">Taux de remplissage</h3>
        </div>
        <div class="panel-body<?php ($accordeon == 3 ? '' : ' collapse') ?>">
            <div class = "row">
                <div class = "col-xs-6" id = "graphiqueTauxRemplissageGlobal"></div>
                <div class = "col-xs-6" id = "graphiqueTauxRemplissageSecteur"></div>
            </div>
        </div>
    </div>

The autoformat isn't able to add space around the equal sign ("=") for the ligne where some PHP instrctions was added in an attribute value.

What happened :
<div class="panel-body<?php ($accordeon == 3 ? '' : ' collapse') ?>">

What expected :
<div class= "panel-body<?php ($accordeon == 3 ? '' : ' collapse') ?>" >
(Space before and after the double quote, as for others lines)

Tested in 8.0.2 and DEV 201509090002
Comment 1 Tomas Mysik 2016-06-10 06:05:16 UTC
Seems to me to be an issue of HTML formatter. Please evaluate, thanks.