asciidoctor-bibtex 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef28bb04622b1fb0a08734642f086ecbafe496aad434374407cb8bbc4a88adcd
4
- data.tar.gz: 80eaab008974ae4b2afbdf5f73229adaf11760954c5153471df5c78c39fb7b19
3
+ metadata.gz: 89fbb2a41ee997771d88259c171820124f17653e1c98ae047713a6fae009c2bd
4
+ data.tar.gz: 2b9016dc63a94c2e2127977d3af7771daa92e8e07fc68043b7af609e8c6a7907
5
5
  SHA512:
6
- metadata.gz: db5db5a418b582cf9df51a6b7fdf3bc45540e5514abfeb25a187576781442351bc1c9e71e50b977695bd0286a63c6522ca0014def475c1484f42d1840c6127e4
7
- data.tar.gz: 86a4f7e498827c8ec94b5432d88d044307432df19d091ff58f209e2daa08d839c9a2108b5f074a73677a60942f2e0f7bbd0a71bb559b5abc09115a5c1dac134f
6
+ metadata.gz: 418685ec3a7539d86f932fff5d206b688cd42cbf8305f62d2aa7772fcfce7550ec4c2b7c3d1d1c2459623e046ce72bbe4bcbbd7babf9867513168cc5fb92aa2e
7
+ data.tar.gz: 757ad6e419e4067800ecfa0fec230b5d8d5e99de8af2710d5cd7b955daf05bd826b43d8347031824a5f01c0a0476a06539c82e51ae5daa5a456802bad5b29460
@@ -117,9 +117,11 @@ module AsciidoctorBibtex
117
117
  block.instance_variable_set :@text, line
118
118
  else
119
119
  block.lines.each do |line|
120
+ tmp = line.clone
120
121
  processor.citations.retrieve_citations(line).each do |citation|
121
- line = line.gsub(citation.original, processor.complete_citation(citation))
122
+ tmp = tmp.gsub(citation.original, processor.complete_citation(citation))
122
123
  end
124
+ line.replace tmp
123
125
  end
124
126
  end
125
127
  end
@@ -1,3 +1,3 @@
1
1
  module AsciidoctorBibtex
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-bibtex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhang YANG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-18 00:00:00.000000000 Z
11
+ date: 2019-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor