PR #4070 consolidated libsmartcols env vars into man-common/env-smartcols.adoc
and had all tools (including fdisk and cfdisk) include it. That documented
LIBSMARTCOLS_JSON in fdisk/cfdisk man pages although those tools do not
support --json output, which is misleading.
Use ifdef::smartcols-json[] in env-smartcols.adoc so the JSON env var
section is only rendered for man pages that set :smartcols-json: (column,
lsblk, findmnt, sfdisk). fdisk and cfdisk include the same file but do not
set the attribute, so they only show the debug-related variables.
Addresses: util-linux#4070
:man source: util-linux {release-version}
:page-layout: base
:command: sfdisk
+:smartcols-json:
:plus: +
:asterisk: *
*LIBSMARTCOLS_DEBUG_PADDING*=on::
use visible padding characters.
+ifdef::smartcols-json[]
*LIBSMARTCOLS_JSON*=compact|lines::
Controls JSON output format when using *--json*. Supported values are
*compact* for JSON output with minimal whitespace, and *lines* for JSON Lines
format (one JSON object per line). If unset or set to any other value,
pretty-printed JSON is used.
+endif::smartcols-json[]
:man source: util-linux {release-version}
:page-layout: base
:command: findmnt
+:smartcols-json:
:plus: +
== NAME
:man source: util-linux {release-version}
:page-layout: base
:command: lsblk
+:smartcols-json:
== NAME
:man source: util-linux {release-version}
:page-layout: base
:command: column
+:smartcols-json:
== NAME