asciidoc.conf, sort-and-group: remove "and" if we have only one element

--sort-and-group--
One
--sort-and-group--

used to be converted into

and One

Remove the leading and in this case.

Change-Id: I3332b316c4fcce164c94e36c3c7b4480947bdf68
Reviewed-on: https://code.wireshark.org/review/17003
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Martin Kaiser 2016-08-10 22:54:58 +02:00 committed by Michael Mann
parent 854793d48e
commit c7e45607fc
1 changed files with 1 additions and 1 deletions

View File

@ -122,4 +122,4 @@ endif::backend-html4,backend-html5,backend-xhtml11[]
delimiter=^--sort-and-group--$
style=default
filter=sort --ignore-case
default-style=template="paragraph",filter='sort --ignore-case | sed -e "s/,//g" | sed -e "/^$/d" -e "$ s/^/and /" -e "$ ! s/$/,/"'
default-style=template="paragraph",filter='sort --ignore-case | sed -e "s/,//g" | sed -e "/^$/d" -e "$ s/^/and /" -e "$ ! s/$/,/" -e "1 s/^and //"'