John MacFarlane
John MacFarlane
though presumably I should be looking for `XRef` and not `FlateDecode`? Will `XRef` always be followed by a stream?
OK, let me take a closer look at your code. Unfortunately it doesn't run on my system (Python 3.13.3): ``` /Users/jgm/src/pandoc/extract.py:39: SyntaxWarning: invalid escape sequence '\W' width_array_left = s.find(b'[', dubya...
I found the bug in my code. I was stripping out newline characters in parsing the stream, but these bytes are allowed.
Ok, I've pushed a fix that should improve things. It's not as sophisticated as your code, but it seems to work at least for the two samples we have.
Further testing welcome.
@nwellnhof what do you think?
@nwellnhof I'll defer to your judgment on this. Do you want to suggest a specific change to this PR, or a new PR on top of it?
Yes, it should indeed be an `--` which will turn into an en dash in the rendered version.
This should be tested with a much wider selection of tables, including tables with relative column widths (e.g. some of the later tables in test/tables.native or test/tables-rstsubset.native). There may be...
I'm still not sure about this one. Note that there are references in the manual to, e.g. `[Variables]` and `[Variables for HTML slides]` which would be broken by this change....