# Code Formatter Adding Extra Blank Lines After Comments (12.8.0.19)

**URL:** <https://forums.toadworld.com/t/code-formatter-adding-extra-blank-lines-after-comments-12-8-0-19/33972>\
**Category:** Toad for Oracle - Beta\
**Created:** [August 25, 2015, 7:39am UTC](https://forums.toadworld.com/t/code-formatter-adding-extra-blank-lines-after-comments-12-8-0-19/33972 "2015-08-25T07:39:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay.rasmussen](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jay.rasmussen](https://forums.toadworld.com/u/jay.rasmussen)\
**Post date:** [August 25, 2015, 7:39am UTC](https://forums.toadworld.com/t/code-formatter-adding-extra-blank-lines-after-comments-12-8-0-19/33972/1 "2015-08-25T07:39:53Z")

</div>

In the Toad for Oracle 12.8.0.19 beta, the Toad Code Formatter is adding 2 blank lines in the source code after multiline PLSQL comment blocks enclosed inside of /\* \*/ delimiters.

This is a new behavior that does not happen in Toad 12.7 or earlier.

EXAMPLE:

CODE INSIDE OF PLSQL PACKAGE BEFORE FORMATTING:

/\*  
Function Name: c\_adty\_id\_mailing CONSTANT  
Purpose: Defines the value of APP\_ENV server variable on the DEVELOPMENT Oracle Application Server

```
 Parameters: none

 Returns: This function returns the same VARCHAR2 value in all environments.

 Procedure Modification History
 ----------------------------
 Date By Req/Prob# Env/Date Description
 ---------- ---- ----------- --------------- ----------------------------------------------------
 05/26/2011 JAR Create function

```

\*/  
FUNCTION c\_adty\_id\_mailing  
RETURN VARCHAR2  
IS  
l\_adty\_id\_mailing NUMBER(12);  
BEGIN  
SELECT addr\_type\_id  
INTO l\_adty\_id\_mailing  
FROM CORP\_COMMON2.ADDR\_TYPE a  
WHERE a.type\_code = ‘ADDR\_MAILING’;

```
  RETURN l_adty_id_mailing;

```

END c\_adty\_id\_mailing;

CODE INSIDE OF PLSQL PACKAGE AFTER FORMATTING:

/\*  
Function Name: c\_adty\_id\_mailing CONSTANT  
Purpose: Defines the value of APP\_ENV server variable on the DEVELOPMENT Oracle Application Server

```
 Parameters: none

 Returns: This function returns the same VARCHAR2 value in all environments.

 Procedure Modification History
 ----------------------------
 Date By Req/Prob# Env/Date Description
 ---------- ---- ----------- --------------- ----------------------------------------------------
 05/26/2011 JAR Create function

```

\*/

FUNCTION c\_adty\_id\_mailing  
RETURN VARCHAR2  
IS  
l\_adty\_id\_mailing NUMBER(12);  
BEGIN  
SELECT addr\_type\_id  
INTO l\_adty\_id\_mailing  
FROM CORP\_COMMON2.ADDR\_TYPE a  
WHERE a.type\_code = ‘ADDR\_MAILING’;

```
  RETURN l_adty_id_mailing;

```

END c\_adty\_id\_mailing;  
[Toad\_Code\_Formatter\_Blank\_Lines.zip](https://global.discourse-cdn.com/quest/original/2X/7/70b787a5490f50bfb45a79b1e18958a5a1b9e9e7.zip) (2.15 KB)

---

<div class="post-metadata">

**Author:** ![avergison](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/avergison/32/66_2.png) [@avergison](https://forums.toadworld.com/u/avergison)\
**Post date:** [August 25, 2015, 11:33am UTC](https://forums.toadworld.com/t/code-formatter-adding-extra-blank-lines-after-comments-12-8-0-19/33972/2 "2015-08-25T11:33:45Z")

</div>

This is a regression. Nice catch, thanks!

QP5.dll version 5.280 (May 18) was the last version where it still worked fine.

I fixed it for the upcoming version 5.288. Expect it in Toad within a few weeks.

Thanks,

Andre
