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.
Autoformat formating my code like this: <a href="#"> {ifset $create} {_"Create category"} {else} {_"Edit category"} {/ifset} </a> IMHO correct output should be this: <a href="#"> {ifset $create} {_"Create category"} {else} {_"Edit category"} {/ifset} </a>
Reproducible. {if} is working properly, {ifset} is not. Product Version: NetBeans IDE Dev (Build 201310220001) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
Milane where you tested that? It doesn't work for "if" either.
Nevertheless, I fixed that ;) Fixed in web-main #9f575d90fdd4
(In reply to Ondrej Brejla from comment #2) > Milane where you tested that? It doesn't work for "if" either. I tried other example, this one is working for IF and does not for IFSET.. {if $something} <p>{$something}</p> {else} <p>nothing</p> {/if} (In reply to Ondrej Brejla from comment #3) > Nevertheless, I fixed that ;) Fixed in web-main #9f575d90fdd4 I will test it :)
Yep, but it's something different :) {_...} macros were considered as "block" macros (which were not closed by {/_...}). That's why it didn't work for "if" macros either :)
Verified, thanks. Product Version: NetBeans IDE Dev (Build 201311050001) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
Transplanted to release74 branch in releases repo. Please, verify, thanks.
Integrated into 'releases/release74', will be available in build *201311111738* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/5d6b92f3c06a User: Ondrej Brejla <obrejla@netbeans.org> Log: #237326 - [indentation] wrong indentation of latte operators (transplanted from 9f575d90fdd43ee31ab52f1e02f0ee1272687797)
Verified. Product Version: NetBeans IDE 7.4 (Build 201311111738) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)