Fixed
-
JSON output word wrapping (Issue #72) — CLI commands using
-jflag were producing invalid JSON because Rich Console was wrapping long strings at terminal width, inserting line breaks inside JSON string values. This brokejqand other JSON parsing tools.Affected commands:
nlm note list -j,nlm share status -j,nlm export artifact -j,nlm config show -jFix: JSON output now uses Python's built-in
print()instead of Rich'sconsole.print(), bypassing text wrapping entirely. This is consistent with theJsonFormatterclass which already usedprint().Thanks to @pjeby for reporting.
Fixes #72