Skip to content

[FORMATTING] Extra tabs added to multiline comments  #558

@munkhsambuu

Description

@munkhsambuu

Input data

Which SQL and options did you provide as input?

Select * From TABLE_NAME Where 1=1
/*
comment line1 
comment line2 
comment line3 
*/

Expected Output

Select
  *
From
  TABLE_NAME
Where
  1 = 1
  /*
  comment line1 
  comment line2 
  comment line3 
  */

Actual Output

Select
  *
From
  TABLE_NAME
Where
  1 = 1
  /*
                      comment line1 
                      comment line2 
                      comment line3 
                      */

Usage

  • How are you calling / using the library? - regular
  • What SQL language(s) does this apply to? - SQL
  • Which SQL Formatter version are you using? - latest

Every time format is applied to the query string a new tab is appended to each line of the multiline comment (except the first line containing start of comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions