Skip to content

[FORMATTING] Allow dense formatting of multiple square brackets after another #489

Open
@primeapple

Description

@primeapple

Input data

Which SQL and options did you provide as input?

select foo['bar']['baz']['boz']

Expected Output

select
  foo['bar']['baz']['boz']

Actual Output

select
  foo['bar'] ['baz'] ['boz']

Usage

  • How are you calling / using the library?
    • I used the demo website
  • What SQL language(s) does this apply to?
    • I tested with Snowflake and Postgresql
  • Which SQL Formatter version are you using?
    • The latest one.

Infos

This is not breaking, afaik it works with spaces in between as well. However it looks a bit weird, so maybe we can figure this out?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions