Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Keep blank lines #491

@ronnylt

Description

@ronnylt

It would be good to keep blank lines in the original file after the formatting has been applied, or at list to control this behaviour with a rule. Is it possible?

For example:

message Machine {
  // Unique ID of the machine
  string id = 1;

  // Human readable name of the machine
  string name = 2;

  // Description of the machine
  string description = 4;

  // Machine image preview
  string preview_image_url = 5;
}

Get formatted to the following, losing all blank line separation between the fields of the messages.

message Machine {
  // Unique ID of the machine
  string id = 1;
  // Human readable name of the machine
  string name = 2;
  // Description of the machine
  string description = 4;
  // Machine image preview
  string preview_image_url = 5;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.11Issue will be released with v1.11

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions