Revert "docbook: remove equivalent case."

We still need the "length == 2" behavior.

This reverts commit 622b17a475.

Change-Id: Id3b7ed9231f3fefeeac5fb910b792139c4844ec8
Reviewed-on: https://code.wireshark.org/review/28484
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2018-06-27 17:07:28 +00:00
parent e4e0488da9
commit af4b6cb9a2
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ 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]