]
Vlado Pakan closed JBIDE-17579.
-------------------------------
Verified with JBDS 8.0.0.Beta3-v20140706-0939-B172
Incorrect code formating when dropping from Palette inside a comment
node
-------------------------------------------------------------------------
Key: JBIDE-17579
URL:
https://issues.jboss.org/browse/JBIDE-17579
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml/html source editing
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Fix For: 4.2.0.Beta3
1. Create the following HTML5 file:
{code}
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width,
initial-scale=1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.4.0-rc.1/jquery.mobile-1.4.0-r...
/>
<script
src="http://code.jquery.com/jquery-1.10.2.min.js"></scrip...
<script
src="http://code.jquery.com/mobile/1.4.0-rc.1/jquery.mobile-1.4.0-rc...
</head>
<body>
<div data-role="page" id="page-1">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>Page content goes here.</p>
<!--comment-->
<a href="" id="button-1" class="ui-btn ui-icon-bars
ui-btn-icon-left ui-corner-all">Link button</a>
</div>
</div>
</body>
</html>
{code}
2. Drop a "Button" item from JQM Palette right after the <!--comment-->
node (in the end of that line)
*Assert:*
{code}
...
<div data-role="content">
<p>Page content goes here.</p>
<!--comment-->
<a href="" id="button-2" class="ui-btn
ui-corner-all">Link button</a>
<a href="" id="button-1" class="ui-btn ui-icon-bars
ui-btn-icon-left ui-corner-all">Link button</a>
</div>
...
{code}
*Failure:* (see an extra tab symbol before <a>)
{code}
...
<div data-role="content">
<p>Page content goes here.</p>
<!--comment-->
<a href="" id="button-2" class="ui-btn
ui-corner-all">Link button</a>
<a href="" id="button-1" class="ui-btn ui-icon-bars
ui-btn-icon-left ui-corner-all">Link button</a>
</div>
...
{code}