Closed mikebader closed 4 years ago
Thank you for this report and sorry for the long wait. I have not been able to reproduce this error. Note that there is a similar Issue filed against pandoc-eqnos: https://github.com/tomduck/pandoc-eqnos/issues/45
I have just released pandoc-tablenos 2.2.0. Could you please test against that? It is quite possible that this issue got resolved during other bug fixes. Pandoc 2.9 was not available at the time of the last release of pandoc-tablenos.
Thanks, Tom
I think this bug is related to warnings getting into stdout instead of stderr (I had this bug in another pandoc filter, because there was a call
to an outside tool). It could be a pandoc problem, or maybe something else.
I'm pretty sure that a JSON processing of the warning generated at https://github.com/tomduck/pandoc-tablenos/blob/eb486fdd4460993b3ddd459e3fa02f513b5516e5/pandoc_tablenos.py#L536 is involved in the original issue. The code seems to be writing it to STDERR, but maybe the outer processing shell (or whatever) is not keeping them separate?
Oh my. I will bet that you are using python 2. I can see the problem in the pandoc core. Can you please confirm?
I am now able to reproduce the error under python 2.7.
To be clear - I don't actually have this issue - I found this months ago when stumbling on the problem in my own filter, and was trying to help out.
Well, you definitely identified a problem. Thanks for your help!
Tom
pandoc-xnos 2.4.1 is now released. --Tom
Thank you for your attention to this! I need to upgrade my whole system to Python 3. I've been anticipating getting a new computer, so have been putting off doing it -- but then the pandemic hit so I haven't had a chance.
All good. I expect to continue to support python 2.7 for the foreseeable future. :o) --Tom
Thank you for all of your work on pandoc-xnos. I have run into an issue attempting to convert markdown files to PDF. I tried converting the demo3.md file. It works correctly when converting to HTML, but does not work when converting to PDF.
The code that produced the error is pasted below.