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 246928 - Error in Smarty auto-formatting indentation with some {foreach}
Summary: Error in Smarty auto-formatting indentation with some {foreach}
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Smarty (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 00:25 UTC by Sarke
Modified: 2016-08-29 06: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 Sarke 2014-09-09 00:25:51 UTC
Auto formatting of this works fine:


<div>
	{foreach $a as $v}
		<span>a</span>
	{/foreach}
</div>


However, this causes strange indentation:


<ul>
	{foreach $a as $v}
		<li>a</li>
		{/foreach}
</ul>
Comment 1 Vladimir Riha 2014-09-10 15:51:38 UTC
reproducible

Product Version: NetBeans IDE Dev (Build 201409100001)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)