sherter
Repos
12
Followers
9
Following
2

Reformats Java source code to comply with Google Java Style.

4891
751

Adaptable, fast automation for all

14470
3899

An in-memory file system for Java 7+

2249
257

Define and run multi-container applications with Docker

28938
4536

Generate files from docker container meta-data

4192
557

Events

issue comment
"\n" in table cell is replaced by an actual newline in the output

That was fast, thank you :heart:

Created at 1 month ago
opened issue
Non-ASCII characters cause table column width to grow unnecessarily

See https://github.com/sherter/ghokin/commit/ea0fba40560883a7fa921f6593107da2aa99c80b

For each non-ascii character in the table cell, the table column width grows one space larger than it needs to be.

    --- FAIL: TestTransform/fixtures/table-with-non-ascii-characters.feature (0.00s)
        transformer_test.go:475:
                Error Trace:    /home/simon/repositories/ghokin/ghokin/transformer_test.go:475
                Error:          Not equal:
                                expected: "Feature: A Feature\n  Description\n\n  Scenario: A scenario to test\n    Given a thing\n      | äöüûú |\n\n"
                                actual  : "Feature: A Feature\n  Description\n\n  Scenario: A scenario to test\n    Given a thing\n      | äöüûú      |\n\n"

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -5,3 +5,3 @@
                                     Given a thing
                                -      | äöüûú |
                                +      | äöüûú      |

                Test:           TestTransform/fixtures/table-with-non-ascii-characters.feature
Created at 1 month ago
create branch
sherter create branch bug/non-ascii-column-width
Created at 1 month ago
opened issue
"\n" in table cell is replaced by an actual newline in the output

When you format a table that contains \n, fmt replaces it with an actual newline instead of outputting the characters \n again. Failing testcase: https://github.com/sherter/ghokin/commit/d6f88c684fc8763261c92baae5751b4a943cd733

Created at 1 month ago
create branch
sherter create branch bug/newline-in-table
Created at 1 month ago
Created at 1 month ago