[Rpm-maint] [rpm-software-management/rpm] docs/queryformat: fix query expressions example (PR #1966)
Todd Zullinger
notifications at github.com
Tue Mar 22 22:52:24 UTC 2022
The example command in the "Query Expressions" section fails because of
the backslash added in a9678c2dc (Insert space between the "{" and "%",
2021-05-06):
$ # rpm -qa --queryformat "%-30{NAME} %|PREINPROG?{ %{PREINPROG\}}:{no}|\n"
error: incorrect format: unknown tag: "PREINPROG\"
...
While this is relatively easy to spot and fix, it is better to avoid
non-working examples in the documentation.
Fortunately, there is no need to escape the closing `}}` as there is no
opening `{{` tag. The dependency_generators and macros pages both
contain un-escaped `}}` strings which are displayed correctly.
Add a space to the else condition as well, to align the output.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1966
-- Commit Summary --
* docs/queryformat: fix query expressions example
-- File Changes --
M docs/manual/queryformat.md (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1966.patch
https://github.com/rpm-software-management/rpm/pull/1966.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1966
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1966 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220322/00e2f716/attachment.html>
More information about the Rpm-maint
mailing list