One function
parse_stream_content in desgeeko/pdfsyntax
The author described this change as “Fix bug in content parsing and add test for graphics”. It counts as a record because the check below fails on the code as it stood at d0a398fd5 and passes on c585d817f, with nothing else changed between the two runs.
Projectdesgeeko/pdfsyntax
Fix saved2024-12-29
Sharing licenceMIT · LICENSE
Change size+2 −0
What the code was meant to do, written into the code itself as a docstring
Break down stream content into a list of commands. A command is a list made of operands followed by an operator, like [1, 0, 0, 1, 0, 0, 'cm']
The change
| 23 | 23 | continue | |
| 24 | 24 | i -= 1 | |
| 25 | 25 | i -= 1 | |
| 26 | + | if current: | |
| 27 | + | ret.insert(0, current) | |
| 26 | 28 | return ret |
The check that tells the two apart
fail→pass·tests/test_graphics.py::Unicode::test_stream_parsing
Check file tests/test_graphics.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itd0a398fd50d590bd40cb56024b68c297b515d546
Broken version dated2024-12-28
Modulepdfsyntax.graphics
Units changedparse_stream_content
Fingerprint2229bf578d0bd979
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in desgeeko/pdfsyntax
- 2024-07-20next_token