Skip to content

Commit

Permalink
fixed processing of personname element in book info
Browse files Browse the repository at this point in the history
  • Loading branch information
fbolton authored and mojavelinux committed Oct 12, 2023
1 parent 1561135 commit fed0079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/docbookrx/docbook_visitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def process_info node
(node.css 'author').each do |author_node|
# FIXME need to detect DocBook 4.5 vs 5.0 to handle names properly
author = if (personname_node = (author_node.at_css 'personname'))
text personname_node
[(text_at_css personname_node, 'firstname'), (text_at_css personname_node, 'surname')].compact * ' '
else
[(text_at_css author_node, 'firstname'), (text_at_css author_node, 'surname')].compact * ' '
end
Expand Down

0 comments on commit fed0079

Please sign in to comment.