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

Summary: HTML Formating with PHP code
Product: web Reporter: amobilia
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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.