Skip to content

Commit

Permalink
1.2.10: Be more robust to weird DOI info
Browse files Browse the repository at this point in the history
  • Loading branch information
cabo committed Feb 12, 2019
1 parent a9e877c commit 2a2e5be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions bin/doilit
Expand Up @@ -47,9 +47,14 @@ ARGV.each do |doi|
if authors = cite["author"]
lit["author"] = authors.map do |au|
lau = {}
if (g = au["given"]) && (f = au["family"])
lau["name"] = "#{g} #{f}"
lau["ins"] = "#{g[0]}. #{f}"
if (f = au["family"])
if (g = au["given"])
lau["name"] = "#{g} #{f}"
lau["ins"] = "#{g[0]}. #{f}"
else
lau["name"] = "#{f}"
# lau["ins"] = "#{g[0]}. #{f}"
end
end
lau
end
Expand Down
2 changes: 1 addition & 1 deletion kramdown-rfc2629.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = 'kramdown-rfc2629'
s.version = '1.2.9'
s.version = '1.2.10'
s.summary = "Kramdown extension for generating RFC 7749 XML."
s.description = %{An RFC7749 (XML2RFC) generating backend for Thomas Leitner's
"kramdown" markdown parser. Mostly useful for RFC writers.}
Expand Down

0 comments on commit 2a2e5be

Please sign in to comment.