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 184803 - Format comments
Summary: Format comments
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-23 08:31 UTC by Matt73
Modified: 2010-05-11 07:47 UTC (History)
1 user (show)

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 Matt73 2010-04-23 08:31:40 UTC
Product Version = NetBeans IDE 6.9 Beta (Build 201004200117)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_17
Runtime = Java HotSpot(TM) Client VM 14.3-b01

When I right click in the editor and choose Format the first few characters of the comments dissappear.

<?php
/*
Test
*/
?>

becomes

<?php

/*
 * est
 */
?>
Comment 1 Matt73 2010-04-23 08:49:08 UTC
On the same subject, blank lines in the comments are stripped.

<?php
/*
First Line

Second Line after blank line
*/
?>

becomes

<?php

/*
 * irst Line
 * econd Line after blank line
 */
?>
Comment 2 Filip Zamboj 2010-05-10 12:08:56 UTC
not reproducible in 

Product Version: NetBeans IDE Dev (Build 100510-60a4e60988a5)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

@reporter: what build are you using, please? (you can find this information in Help -> About). Thanks.
Comment 3 Petr Pisl 2010-05-10 12:14:34 UTC
I have fixed the first case on Thursday, today I'm working on the second case with the blank lines. Should be fixed soon.
Comment 4 Filip Zamboj 2010-05-10 12:49:55 UTC
ah, ok, sorry then.
Comment 5 Petr Pisl 2010-05-10 13:59:58 UTC
Fixed the empty line as well. Fixed in the web-main.
Comment 6 Quality Engineering 2010-05-11 07:47:48 UTC
Integrated into 'main-golden', will be available in build *201005110931* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: