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 - Undesired behavior: Code-format removes whitespace in quotes
Summary: Undesired behavior: Code-format removes whitespace in quotes
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-19 17:55 UTC by _ gtzabari
Modified: 2016-07-19 17:55 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 _ 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.