Skip to content

Booking Method Formatting Error #836

@slimslickner

Description

@slimslickner

I leverage booking methods for some of my accounts. The LSP is auto-formatting the following transaction

2024-01-01 open Assets:Investment:Retirement:Fidelity-Roth-IRA:FXAIX     FXAIX "FIFO"
  fava-uptodate-indication: TRUE
  label: "Fidelity - Fidelity Roth IRA (FXAIX)"

like this (removing the first " of the "FIFO"), which breaks the file

2024-01-01 open Assets:Investment:Retirement:Fidelity-Roth-IRA:FXAIX                   FXAIX FIFO"
  fava-uptodate-indication: TRUE
  label: "Fidelity - Fidelity Roth IRA (FXAIX)"

This is running in Zed with the following project settings:

{
  "lsp": {
    "beancount": {
      "initialization_options": {
        "journal_file": "main.bean",
        "formatting": {
          "prefix_width": null, // Fixed width for account names (overrides auto-detection) (--prefix-width in bean-format)
          "num_width": null, // Fixed width for number alignment (overrides auto-detection) (--num-width in bean-format)
          "currency_column": null, // Align currencies at this specific column (--currency-column in bean-format)
          "account_amount_spacing": 2, // Minimum spaces between account names and amounts
          "number_currency_spacing": 1, // Number of spaces between number and currency
        },
        "diagnostic_flags": ["!"],
      },
    },
  },
}

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