2014-04-02 08:29:12 +00:00
|
|
|
## linkbtrfs: macro
|
|
|
|
#
|
|
|
|
# Usage: linkbtrfs:command[manpage-section]
|
|
|
|
#
|
|
|
|
# Note, {0} is the manpage section, while {target} is the command.
|
|
|
|
#
|
|
|
|
# Show Btrfslink as: <command>(<section>); if section is defined, else just show
|
|
|
|
# the command.
|
|
|
|
|
|
|
|
[macros]
|
|
|
|
(?su)[\\]?(?P<name>linkbtrfs):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
|
|
|
|
|
btrfs-progs: Documentation: fix broken conversion
Fixes various formatting issues:
Fixes quoting issues in various manpages. Before/After excerpts for
mkfs.btrfs(8), btrfs-qgroup(8):
mkfs.btrfs [-A|--alloc-start '<alloc-start>']
mkfs.btrfs [-A|--alloc-start <alloc-start>]
id 0/<subvolume id>''
id 0/<subvolume id>
If multiple '<attr>'s is given, use comma to separate.
If multiple <attr>s is given, use comma to separate.
The one that is most apparent is the removal of text in
btrfs-subvolume(8) and others. Before/After:
list [options] [-G <value>] [-C <value>] [--sort=rootid,gen,ogen,path] <path>
list [options] [-G [+|-]<value>] [-C [+|-]<value>] [--sort=rootid,gen,ogen,path] <path>
create [-i <qgroupid>] <name>
create [-i <qgroupid>] [<dest>]<name>
This happens because `<foo>` was replaced by `'<foo>'` in the sed
expression, which is then treated as a constrained quote. As a result,
the `[...]` before the string gets interpreted as "quoted text
attributes".
In this patch, the sed expression is dropped and asciidoc is configured
to recognize `<...>` as a unconstrained quoted string (such that
`<attr>s` is correctly emphasized) and to avoid adding quotes in
contexts where it is not needed.
A remaining problem is that some texts (the one between brackets) do not
add the emphasis for `<...>`. While this could be solved by replacing
`[` and `]` with `[` and `]` using sed, it introduces formatting
problems in btrfs-zero-log(8) because the context is ignored.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: David Sterba <dsterba@suse.cz>
2015-01-05 14:10:09 +00:00
|
|
|
[tags]
|
|
|
|
bracket-emphasis={1?[{1}]}<emphasis><|></emphasis>
|
|
|
|
|
|
|
|
[quotes]
|
|
|
|
<|>=#bracket-emphasis
|
|
|
|
|
2014-04-02 08:29:12 +00:00
|
|
|
[attributes]
|
|
|
|
asterisk=*
|
|
|
|
plus=+
|
|
|
|
caret=^
|
|
|
|
startsb=[
|
|
|
|
endsb=]
|
|
|
|
backslash=\
|
|
|
|
tilde=~
|
|
|
|
apostrophe='
|
|
|
|
backtick=`
|
|
|
|
litdd=--
|
|
|
|
|
2018-11-20 10:13:08 +00:00
|
|
|
ifdef::doctype-manpage[]
|
|
|
|
|
|
|
|
[quotes]
|
|
|
|
^=#exponent
|
|
|
|
|
|
|
|
[tags]
|
|
|
|
exponent={1?[{1}]}^|
|
|
|
|
|
|
|
|
endif::doctype-manpage[]
|
|
|
|
|
2014-04-02 08:29:12 +00:00
|
|
|
ifdef::doctype-manpage[]
|
|
|
|
ifdef::backend-docbook[]
|
|
|
|
[header]
|
|
|
|
template::[header-declarations]
|
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>{mantitle}</refentrytitle>
|
|
|
|
<manvolnum>{manvolnum}</manvolnum>
|
|
|
|
<refmiscinfo class="source">Btrfs</refmiscinfo>
|
|
|
|
<refmiscinfo class="version">{btrfs_version}</refmiscinfo>
|
|
|
|
<refmiscinfo class="manual">Btrfs Manual</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>{manname}</refname>
|
|
|
|
<refpurpose>{manpurpose}</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
endif::backend-docbook[]
|
|
|
|
endif::doctype-manpage[]
|
2018-11-20 10:13:08 +00:00
|
|
|
|