Skip to content

Regression when specifying format for commodity "h" #2205

@Boldewyn

Description

@Boldewyn

We’re using ledger as time management tool and have added the following lines to allow appropriate German formatting of hours:

commodity h
    format 1.000,00 h
    default

When upgrading to ledger 3.3.0, running any ledger command results in the error message:

While parsing file "/time/user.journal", line 722:
Error: commodity directive symbol h and format directive symbol s should be the same

This seems to be the same error as this one reported on reddit which allocates the error message in https://github.com/ledger/ledger/blame/master/src/textual.cc#L1137

This is a regression from 3.2.1 and older where the above statement worked perfectly fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions