Skip to content

Cannot wrap long array lines #47

@gnoliyil

Description

@gnoliyil

Currently, if we have a property array like

reg = <0x00 0x1000 0x01 0x02>,
      <0x01 0x1100 0x02 0x03>,
      <0x01 0x1100 0x02 0x03>,
      <0x01 0x1100 0x02 0x03>,
      <0x01 0x1100 0x02 0x03>,
      <0x01 0x1100 0x02 0x03>;

it will be formatted to

reg = <0x00 0x1000 0x01 0x02>, <0x01 0x1100 0x02 0x03>, <0x01 0x1100 0x02 0x03>, <0x01 0x1100 0x02 0x03>, <0x01 0x1100 0x02 0x03>, <0x01 0x1100 0x02 0x03>;

This can be difficult to read when the line is too long.

We might want to break the array into multiple lines if the length of a line exceeds a certain threshold (let's say, 80 characters).

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