We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76829de commit e6d26e4Copy full SHA for e6d26e4
src/__init__.py
@@ -6646,7 +6646,9 @@ def remove_hidden(cont_lines):
6646
if not page.get_contents():
6647
continue
6648
if hidden_text:
6649
- xref = page.get_contents()[0] # only one b/o cleaning!
+ xrefs = page.get_contents()
6650
+ assert len(xrefs) == 1 # only one because of cleaning.
6651
+ xref = xrefs[0]
6652
cont = doc.xref_stream(xref)
6653
cont_lines = remove_hidden(cont.splitlines()) # remove hidden text
6654
if cont_lines: # something was actually removed
0 commit comments