Skip to content

Commit

Permalink
Hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Apr 5, 2024
1 parent b5d58b1 commit 215dec3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,7 @@ def unsafe_raw(content = nil)
def capture(&block)
return "" unless block

context = @_context
return if context.fragments && !context.in_target_fragment

context.capturing_into(+"") { yield_content(&block) }
@_context.capturing_into(+"") { yield_content(&block) }
end

private
Expand Down

0 comments on commit 215dec3

Please sign in to comment.