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 265584

Summary: Undesired behavior: Code-format removes whitespace in quotes
Product: web Reporter: _ gtzabari <gtzabari>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2016-07-19 17:55:42 UTC
Product Version: NetBeans IDE Dev (Build 201607180002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb)
User directory: C:\Users\a-gtzabari\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\a-gtzabari\AppData\Local\NetBeans\Cache\dev

1. Given:

<div class="panel panel-default {{ test }}">

2. Code-format changes the line to:

<div class="panel panel-default {{ test}}">

(it removes the whitespace before "}}"

Expected behavior: Code-format should not remove whitespace between tokens. This is certainly true when is only one space. I might understand your desire to collapse multiple spaces into one.