8000 Memory of column widths fails when there are inline comments · Issue #128 · antham/ghokin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Memory of column widths fails when there are inline comments #128
Closed
@xyu

Description

@xyu

When there are either blank lines or comments between rows of a table, for example a feature file that looks something like this:

Feature: Test Formatter
  Scenario: Comment between rows
    Given table my_table
      | col a | col b |
      | 1     | 2     |
      # A comment about the row below
      | 3     | 4     |

On the latest 3.5.0 (as well as earlier) version of ghokin the 3rd row of the table gets formatted as if the column width should be sized interdependently of the rest of the table.

$ ghokin fmt stdout test.feature

Produces:

Feature: Test Formatter
  Scenario: Comment between rows
    Given table my_table
      | col a | col b |
      | 1     | 2     |
      # A comment about the row below
      | 3 | 4 |

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

      0