summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-06-02 23:42:21 -0600
committerDan Allen <dan.j.allen@gmail.com>2021-06-03 00:42:35 -0600
commit76d1e95aa2a79cd113a4bbc56a703004df08896e (patch)
tree10f11df8d1a9e7cf97b08dbf2802b5911430a372 /lib
parent296b947bc007f9a09f45a615bb7243eabc6978f5 (diff)
use comma after last entry in multi-line array [skip ci]
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor.rb4
-rw-r--r--lib/asciidoctor/parser.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb
index 26989788..2a7f02c9 100644
--- a/lib/asciidoctor.rb
+++ b/lib/asciidoctor.rb
@@ -465,7 +465,7 @@ module Asciidoctor
# ^superscript^
[:superscript, :unconstrained, /\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],
# ~subscript~
- [:subscript, :unconstrained, /\\?(?:\[([^\]]+)\])?~(\S+?)~/]
+ [:subscript, :unconstrained, /\\?(?:\[([^\]]+)\])?~(\S+?)~/],
]
accum[true] = compat = normal.drop 0
@@ -513,7 +513,7 @@ module Asciidoctor
# left double arrow <=
[/\\?&lt;=/, '&#8656;', :none],
# restore entities
- [/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/, '', :bounding]
+ [/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/, '', :bounding],
]
# Internal: Automatically load the Asciidoctor::Extensions module.
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb
index 228bc12e..334257e6 100644
--- a/lib/asciidoctor/parser.rb
+++ b/lib/asciidoctor/parser.rb
@@ -1866,7 +1866,7 @@ class Parser
authors[idx] = [
author_metadata[%(firstname_#{name_idx = idx + 1})],
author_metadata[%(middlename_#{name_idx})],
- author_metadata[%(lastname_#{name_idx})]
+ author_metadata[%(lastname_#{name_idx})],
].compact.map {|it| it.tr ' ', '_' }.join ' '
end if sparse
# process as names only