Skip to content

Commit

Permalink
Add space before line feed on xref entries
Browse files Browse the repository at this point in the history
  • Loading branch information
tomascco committed Oct 22, 2023
1 parent 3a2fec3 commit 03bb107
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[pdf]": {
"files.trimTrailingWhitespace": false,
}
}
4 changes: 2 additions & 2 deletions lib/rubrik/document/increment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def call(document, io:)
io << "#{starting_id} #{length}\n"

if starting_id.zero?
io << "0000000000 65535 f\n"
io << "0000000000 65535 f \n"
subsection.shift
end

subsection.each { |entry| io << "#{format("%010d", entry[:offset])} 00000 n\n" }
subsection.each { |entry| io << "#{format("%010d", entry[:offset])} 00000 n \n" }
end

io << "trailer\n"
Expand Down
Binary file modified test/support/with_interactive_form.expected.pdf
Binary file not shown.
Binary file modified test/support/with_interactive_form.pdf
Binary file not shown.

0 comments on commit 03bb107

Please sign in to comment.