No renumbering if content is empty
This commit is contained in:
parent
324e53297b
commit
69bfd4ffc4
@ -3,6 +3,7 @@ module DigestHelper
|
||||
# Important mechanism, to ensure the digest will not have the same footnote
|
||||
# link multiple times
|
||||
def renumber_footnotes(id, description)
|
||||
return if description.nil? || description.blank?
|
||||
description.gsub(/\[(\d)+\]/, "[#{id}_\\1]")
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user