Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
956114dd
You need to sign in or sign up before continuing.
Commit
956114dd
authored
9 months ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
Append output from dumppdf(1) in more cases. (Closes:
#387
)
parent
9382ba74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#712203
passed
9 months ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
diffoscope/comparators/pdf.py
+5
-3
5 additions, 3 deletions
diffoscope/comparators/pdf.py
with
5 additions
and
3 deletions
diffoscope/comparators/pdf.py
+
5
−
3
View file @
956114dd
...
...
@@ -96,16 +96,18 @@ class PdfFile(File):
def
compare_details
(
self
,
other
,
source
=
None
):
xs
=
[]
xs
.
extend
(
self
.
gen_metadata_differences
(
other
))
xs
.
append
(
Difference
.
from_operation
(
Pdftotext
,
self
.
path
,
other
.
path
))
#
Don't i
nclude verbose dumppdf output unless we won't see any
#
differences
without it.
#
I
nclude verbose dumppdf output unless we won't see any
differences
# without it.
if
not
any
(
xs
):
xs
.
append
(
Difference
.
from_operation
(
Dumppdf
,
self
.
path
,
other
.
path
)
)
# Always preppend metadata differences
xs
[:
0
]
=
self
.
gen_metadata_differences
(
other
)
return
xs
def
gen_metadata_differences
(
self
,
other
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment