Skip to content

v0.3.19 — Fix JSON output word wrapping (Issue #72)

Choose a tag to compare

@jacob-bd jacob-bd released this 02 Mar 23:42
· 405 commits to main since this release

Fixed

  • JSON output word wrapping (Issue #72) — CLI commands using -j flag were producing invalid JSON because Rich Console was wrapping long strings at terminal width, inserting line breaks inside JSON string values. This broke jq and other JSON parsing tools.

    Affected commands: nlm note list -j, nlm share status -j, nlm export artifact -j, nlm config show -j

    Fix: JSON output now uses Python's built-in print() instead of Rich's console.print(), bypassing text wrapping entirely. This is consistent with the JsonFormatter class which already used print().

    Thanks to @pjeby for reporting.

Fixes #72