lib/citeproc/ruby/renderer/names.rb in citeproc-ruby-1.0.5 vs lib/citeproc/ruby/renderer/names.rb in citeproc-ruby-1.0.6
- old
+ new
@@ -330,9 +330,15 @@
# Variables rendered as substitutes
# must be suppressed during the remainder
# of the rendering process!
item.suppress!(*observer.accessed)
+ # Report a read-access using the substitution string
+ # for the name variable being substituted, or the first
+ # name variable (if there are more than one).
+ variable = node.parent.variable[/\w+/]
+ item.data.simulate_read_attribute variable, string
+
return string # break out of each loop!
end
ensure
observer.stop