Skip to content

CSS newline after comments in property list #1083

@toastal

Description

@toastal

Describe the bug

Takes something readable & makes it not readable.

.Foo {
	 background: cornsilk; /* My loooooooooooooooooooong comment */
	 color: firebrick;
}

formats to

.Foo {
	 background: cornsilk;
	 /* My loooooooooooooooooooong comment */color: firebrick;
}

To Reproduce

Format this

.Foo {
	 background: cornsilk; /* My loooooooooooooooooooong comment */
	 color: firebrick;
}

Expected behavior

No change in “to reproduce”… insert a newline after the end of the comment closing on output. It would appear maybe these newlines are on the wrong side.

Environment

  • OS name + version: NixOS unstable
  • Version of the code: topiary-cli 0.6.1

Additional context

Merged config

    {
    	languages = {
    		css.indent | priority 1 = "	",
    	},
    }

@lavigneer , maker of #699

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions