Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366313 - Unwanted insertion of additional blank lines at format times
Summary: Unwanted insertion of additional blank lines at format times
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-10 12:37 EST by Amenel Voglozin CLA
Modified: 2020-05-14 11:17 EDT (History)
3 users (show)

See Also:


Attachments
File for testing the reported bug. (7.53 KB, application/octet-stream)
2011-12-10 12:41 EST, Amenel Voglozin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amenel Voglozin CLA 2011-12-10 12:37:54 EST
Build Identifier: 20110916-0149

In a PHP file with predominantly XHTML content, every Ctrl+Shift+F keystroke causes 4 blank lines to be inserted before each "<?php" directive. There is no configuration option for the number of empty lines so this seems like a major bug to me since each time I ask for an automatic formatting I have to undo some of that formatting.

Reproducible: Always

Steps to Reproduce:
1. Open the attachment using the PHP editor.
2. Move to caret to the line that contains the first occurrence of "<?php"
3. Format the file using Ctrl+Shift+F or your configured shortcut key combination for the formatter.
Comment 1 Amenel Voglozin CLA 2011-12-10 12:41:08 EST
Created attachment 208217 [details]
File for testing the reported bug.

This is the source file for the contact page at http://waavsolutions.com/pages/en/contact.php
Comment 2 Zhongwei Zhao CLA 2012-05-03 03:17:23 EDT
do you use pdt or zend studio?
I could not reproduce it in pdt.
Comment 3 Amenel Voglozin CLA 2012-05-03 03:50:24 EDT
Well, I can no longer reproduce the insertion of blank lines with build 20120216-1857.

My Eclipse configuration is JDT+JSDT+PDT+CDT+MercurialEclipse+CUTE, nothing more, nothing less, back when I reported this bug and now. The only thing that happened in the meantime is that I upgraded my Eclipse install.

I guess this bugreport can be closed.
Comment 4 Zhongwei Zhao CLA 2013-01-30 02:29:59 EST
Mark as worksforme as comment3
Comment 5 Sylvia Tancheva CLA 2015-02-17 09:25:24 EST
Closing due to the above