Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366313

Summary: Unwanted insertion of additional blank lines at format times
Product: z_Archived Reporter: Amenel Voglozin <waav_zoungla-eclipsebugzilla>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: silviya, waav_zoungla-efc7, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
File for testing the reported bug. none

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