# Inconsistent formatting of comment blocks

**URL:** <https://forums.toadworld.com/t/inconsistent-formatting-of-comment-blocks/39089>\
**Category:** Toad for Oracle - Beta\
**Created:** [February 16, 2017, 11:37pm UTC](https://forums.toadworld.com/t/inconsistent-formatting-of-comment-blocks/39089 "2017-02-16T23:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kornelis.abe](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@kornelis.abe](https://forums.toadworld.com/u/kornelis.abe)\
**Post date:** [February 16, 2017, 11:37pm UTC](https://forums.toadworld.com/t/inconsistent-formatting-of-comment-blocks/39089/1 "2017-02-16T23:37:35Z")

</div>

All,

I’m currently on Toad 12.11.0.42.

While formatting a long script, I noticed some inconsistencies in the formatted code.  
Please see attachment for details.

Issue #1: in between two successive comment blocks, a blank separator line is inserted  
on line 5, but not on lines 126, 300, etc. Only the first double block gets an additional blank line.

Issue #2: between a block of code and the next comment block a blank line is normally inserted  
but not on all occasions. E.g. line 6057/6058 are not separated, whereas 6031/6033 have  
been separated by a single intervening blank line.

Issue #3: An invocation of another script followed by a double-dash comment has the two dashes  
separated by a single intervening space. See e.g. line 32.

Could you please fix these issues?

# Thanks in advance, Abe Kornelis

[View:/cfs-file/\_\_key/communityserver-discussions-components-files/86/20170217-\_2400\_install\_5F00\_tables.sql:320:240]

---

<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:** [February 17, 2017, 5:42am UTC](https://forums.toadworld.com/t/inconsistent-formatting-of-comment-blocks/39089/2 "2017-02-17T05:42:21Z")

</div>

Hi Abe,

Thank you for this valuable feedback.

Comment formatting is currently not optimal, as we all know. The actual code is fairly old and has to be fixed or rewritten. This means a few weeks of work which I’ll try to insert rather early in the stack of near future planned work.

Thanks,  
Andre

---

<div class="post-metadata">

**Author:** ![kornelis.abe](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@kornelis.abe](https://forums.toadworld.com/u/kornelis.abe)\
**Post date:** [February 17, 2017, 7:13am UTC](https://forums.toadworld.com/t/inconsistent-formatting-of-comment-blocks/39089/3 "2017-02-17T07:13:42Z")

</div>

Andre,

thanks for the feedback. It’s ok if it takes some time. There’s no hurry.

# Abe

---

<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:** [April 6, 2017, 4:53am UTC](https://forums.toadworld.com/t/inconsistent-formatting-of-comment-blocks/39089/4 "2017-04-06T04:53:03Z")

</div>

Proposal for new options:

AS alignment options:

- none, output it immediately after the item

- fixed offset relative to left hand margin

- fixed offset relative to shortest item

- fixed offset relative to largest item  
When AS cannot be aligned, then…

- stay on same line and output next to the item

- wrap onto new line, keep alignment

- wrap onto new line, indent relative to left hand margin  
Did I forget some?

Andre  
QP-2345
