Skip to content

Does not handle missing newline between codeblocks gracefully #22

Closed
@schneems

Description

@schneems
context "timezones workaround" do
  it "should receive a time in UTC format and return the time with the"\
    "office's UTC offset substracted from it" do
    travel_to DateTime.new(2020, 10, 1, 10, 0, 0) do
    end
  end
end
context "test" do
  it "should" do
end

Produces:

❯ 1  context "timezones workaround" do
❯ 6  end
❯ 7  context "test" do
❯ 8    it "should" do
❯ 9  end

Which is far too aggressive. The reason is that there's no linebreak above line 7.

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