1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Generate links in man page

Some [foo](bar) links were added to manual.yml without updating
build_manpage.py to make it generate roff for "a" tags.

Fixes #2930
This commit is contained in:
Emanuele Torre
2023-10-12 22:05:08 +02:00
committed by Nico Williams
parent c10cbbff34
commit 9de0e26ce6
2 changed files with 7 additions and 2 deletions

View File

@@ -86,6 +86,9 @@ class RoffWalker(object):
self.__write_cmd('.P')
self._write_element(root, ensure_newline=(parent_tag != 'li'))
elif root.tag == 'a':
self._write_element(root, ensure_newline=(parent_tag != 'li'))
elif root.tag == 'ul':
if self._ul_is_special(root):
li = root[0]

6
jq.1.prebuilt generated
View File

@@ -2738,10 +2738,12 @@ jq \'[\.[] | tonumber?]\'
.IP "" 0
.
.SH "REGULAR EXPRESSIONS"
jq uses the
jq uses the Oniguruma regular expression library, as do PHP, TextMate, Sublime Text, etc, so the description here will focus on jq specifics\.
.
.P
Oniguruma supports several flavors of regular expression, so it is important to know that jq uses the
Oniguruma supports several flavors of regular expression, so it is important to know that jq uses the "Perl NG" (Perl with named groups) flavor\.
.
.P
The jq regex filters are defined so that they can be used using one of these patterns: