aboutsummaryrefslogtreecommitdiffstats
path: root/docbook
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-06-25 07:08:24 +0200
committerAnders Broman <a.broman58@gmail.com>2018-06-27 17:00:57 +0000
commit622b17a475a81aa3af5cc743b831d01233b99c31 (patch)
treea0f2503d9f9fc20122d11a5ed76fedb84fb6eeb3 /docbook
parent52bcc40d5e6bf21fbd5eab052987a6571120972f (diff)
docbook: remove equivalent case.
The output for this case is achieved by the following one. Change-Id: I585aba39ebb67d65a8f5159217ea8a85ad13e49c Reviewed-on: https://code.wireshark.org/review/28421 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'docbook')
-rw-r--r--docbook/asciidoctor-macros/commaize-block/extension.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/docbook/asciidoctor-macros/commaize-block/extension.rb b/docbook/asciidoctor-macros/commaize-block/extension.rb
index ae8fd30568..5cf765a22e 100644
--- a/docbook/asciidoctor-macros/commaize-block/extension.rb
+++ b/docbook/asciidoctor-macros/commaize-block/extension.rb
@@ -32,8 +32,6 @@ class CommaizeBlock < Extensions::BlockProcessor
if lines.length < 2
create_paragraph parent, lines, attrs
- elsif lines.length == 2
- create_paragraph parent, lines.join(" and "), attrs
else
commaized = lines[0..-2].join(", ")
commaized << ", and " + lines[-1]