You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to pass \t as the indent_string to prettify() (as downstream files are diffed and the upstream -- which I can't control -- uses tabs).
Could we add indent_string as an optional argument to prettify() that:
when present, ignores indent and
is passed along to reformat() (perhaps after valdiating that indent_string is indeed a string)?
It's obviously somewhat easy to just use jsonlite:::reformat() instead, but I'd much rather stick with the public API, if possible.
I'm happy to gin-up this relatively simple PR if likely to be approved.
The text was updated successfully, but these errors were encountered:
I'd like to be able to pass
\t
as theindent_string
toprettify()
(as downstream files arediff
ed and the upstream -- which I can't control -- uses tabs).Could we add
indent_string
as an optional argument toprettify()
that:indent
andreformat()
(perhaps after valdiating thatindent_string
is indeed a string)?It's obviously somewhat easy to just use
jsonlite:::reformat()
instead, but I'd much rather stick with the public API, if possible.I'm happy to gin-up this relatively simple PR if likely to be approved.
The text was updated successfully, but these errors were encountered: