From 622b17a475a81aa3af5cc743b831d01233b99c31 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Mon, 25 Jun 2018 07:08:24 +0200 Subject: 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 --- docbook/asciidoctor-macros/commaize-block/extension.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'docbook') 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] -- cgit v1.2.3