summaryrefslogtreecommitdiff
path: root/lib/banzai/reference_extractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/reference_extractor.rb')
-rw-r--r--lib/banzai/reference_extractor.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/banzai/reference_extractor.rb b/lib/banzai/reference_extractor.rb
index 7e6357f8a00..c6426210a92 100644
--- a/lib/banzai/reference_extractor.rb
+++ b/lib/banzai/reference_extractor.rb
@@ -10,8 +10,8 @@ module Banzai
end
def references(type, project, current_user = nil)
- processor = Banzai::ReferenceParser[type]
- .new(project, current_user)
+ processor = Banzai::ReferenceParser[type].
+ new(project, current_user)
processor.process(html_documents)
end
@@ -28,8 +28,8 @@ module Banzai
# text blobs to parse.
return [] if @texts_and_contexts.empty?
- @html_documents ||= Renderer.cache_collection_render(@texts_and_contexts)
- .map { |html| Nokogiri::HTML.fragment(html) }
+ @html_documents ||= Renderer.cache_collection_render(@texts_and_contexts).
+ map { |html| Nokogiri::HTML.fragment(html) }
end
end
end