Maximize the power of SQL Prompt with SQL Toolbelt Essentials. Watch now.

BUG: Incorrect formatting

sdkssdks Posts: 44 Bronze 2
edited April 11, 2019 11:46AM in SQL Prompt
Comments opening tag is indented after format. V 9.4.16.9097

<div>CREATE VIEW test <span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">AS</span>
</div><div><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">/*</span><br></div><div><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">
*/</span>
</div><div><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">SELECT 1 AS one</span><br></div><div><br>-- after format
<br><div>CREATE VIEW test <span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">AS</span>
</div><div><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">&nbsp; &nbsp; /*</span><br></div><div><br></div><div>*/
<span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">&nbsp; &nbsp; SELECT 1 AS one;</span>
</div></div>


Answers

  • Russell DRussell D Posts: 1,324 Diamond 5
    edited April 16, 2019 11:38AM
    I wouldn't agree that this is a bug at all. You've ticked indent clauses, which is what SQL Prompt is doing. Perhaps thats not what you expected that functionality to do?

    I would say that there's a wider issue with comments in general though.
    Have you visited our Help Centre?
Sign In or Register to comment.