diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-11-11 23:47:00 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-11-12 02:37:13 -0700 |
| commit | e51a749f734302e53c3f5042dbc9bf64e27940c8 (patch) | |
| tree | f6d13b19d8e189f636d10484bb776d39332ddf34 /lib | |
| parent | 2d91304b853c88e5fdfa2a1ed4ac5e8e1153a009 (diff) | |
verify authors attribute is only parsed if different from computed value of implicit authors
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb index 2cb5bc5b..ef00bbf2 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -1775,7 +1775,7 @@ class Parser # NOTE this will discard any comment lines, but not skip blank lines process_attribute_entries reader, document - metadata, implicit_author, implicit_authorinitials = implicit_authors = {}, nil, nil + metadata = {} if reader.has_more_lines? && !reader.next_line_empty? unless (author_metadata = process_authors reader.read_line).empty? |
