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 176228 - [formatting] formatting part of code moves the code to the right each time
Summary: [formatting] formatting part of code moves the code to the right each time
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 06:47 UTC by Filip Zamboj
Modified: 2010-04-02 13:08 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 Filip Zamboj 2009-11-09 06:47:33 UTC
consider 
<?php foreach($certificates_list as $certificate): ?>
<div class="certificates_list">
    <p><?php echo link_to($certificate->getName(), "certficate", 
            array(
            "id" => $certificate->getId(), 
            "name" => $certificate->getNameSlug()
            ));
            ?></p>
</div>
<?php endforeach; ?>

1. select everything that is in foreach body and format - works fine 
2. select everything from <p> to </p> and format. I invoked formatting twice and ended up with

<?php foreach($certificates_list as $certificate): ?>
<div class="certificates_list">
    <p><?php echo link_to($certificate->getName(), "certficate", 
                                            array(
                                            "id" => $certificate->getId(), 
                                            "name" => $certificate->getNameSlug()
                                            ));
                                            ?></p>
</div>
<?php endforeach; ?>
Comment 1 Tomasz Slota 2009-11-10 04:44:54 UTC
reproducible. Not sure about the priority, it looks like a pretty specific case
Comment 2 Michael Nazarov 2010-01-14 02:34:22 UTC
Is this variation and duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=142029 ?
Comment 3 Filip Zamboj 2010-01-25 12:11:39 UTC
well, i don't think this is a duplicate but let our developers to say. Tomasz? thank.s
Comment 4 Petr Pisl 2010-02-09 06:33:21 UTC
I have looked at this and this is connected with issue #175229.
Comment 5 Petr Pisl 2010-04-02 13:08:43 UTC
The problem is fixed in web main.