Skip to content
Permalink
Browse files

1.2.10: Be more robust to weird DOI info

  • Loading branch information...
cabo committed Feb 12, 2019
1 parent a9e877c commit 2a2e5be406b57f479b41c22fc8661cb99f29018e
Showing with 9 additions and 4 deletions.
  1. +8 −3 bin/doilit
  2. +1 −1 kramdown-rfc2629.gemspec
@@ -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
@@ -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.}

0 comments on commit 2a2e5be

Please sign in to comment.
You can’t perform that action at this time.