Avoid modifying constant strings
This fixes a ruby 3.4 warning about strings that will be frozen by default in a future release.
This commit is contained in:
parent
5eed367f71
commit
881d0b11b5
2 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ module RichText
|
|||
end
|
||||
|
||||
def truncated_text_content(element)
|
||||
text = ""
|
||||
text = String.new
|
||||
|
||||
append_text = lambda do |child|
|
||||
if child.type == :text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue