Skip to content

Commit

Permalink
fix frozen string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Nov 10, 2024
1 parent 1afd710 commit 83b7c77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/combine_pdf/page_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def encode_text(text, fonts)
# add to array
if out.last.nil? || out.last[0] != fonts[i]
out.last[1] << '>' unless out.last.nil?
out << [fonts[i], '<', 0, 0]
out << [fonts[i], (+'<'), 0, 0]
end
out.last[1] << (fonts_array[i].cmap.nil? ? (c.unpack('H*')[0]) : fonts_array[i].cmap[c])
if fonts_array[i].metrics[c]
Expand Down
2 changes: 1 addition & 1 deletion lib/combine_pdf/pdf_public.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def to_pdf(options = {})
# when finished, remove the numbering system and keep only pointers
remove_old_ids
# output the pdf stream
out.join("\n").force_encoding(Encoding::ASCII_8BIT)
out.join("\n".b).force_encoding(Encoding::ASCII_8BIT)
end

# this method returns all the pages cataloged in the catalog.
Expand Down

0 comments on commit 83b7c77

Please sign in to comment.