Skip to content

Only format the attributes that exceed a specified line length #15

Description

@nakhbari

Expanding each attribute to a new line can make a file very long. It would be nice to only wrap the attributes that exceed the line length

Example

Before
<div>
    <div>
        <mat-table [dataSource]="dataSource">
            <ng-container matColumnDef="name">
                <mat-header-cell *matHeaderCellDef name="some really long string value">
                    Column name
                </mat-header-cell>
        </mat-table>
    </div>
</div>
After
<div>
    <div>
        <mat-table [dataSource]="dataSource">
            <ng-container matColumnDef="name">
                <mat-header-cell *matHeaderCellDef 
                                 name="some really long string value">
                    Column name
                </mat-header-cell>
        </mat-table>
    </div>
</div>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions