Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

'MetaBlocks' object has no attribute 'append' #2

Closed
yunesj opened this issue May 10, 2018 · 1 comment
Closed

'MetaBlocks' object has no attribute 'append' #2

yunesj opened this issue May 10, 2018 · 1 comment

Comments

@yunesj
Copy link

yunesj commented May 10, 2018

I am getting an error when running pandoc-latex-unlisted.

Thanks!

Traceback (most recent call last):
  File "/usr/local/bin/pandoc-latex-unlisted", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/pandoc_latex_unlisted.py", line 43, in main
    return run_filter(header, prepare = prepare, doc = doc, finalize = finalize)
  File "/usr/local/lib/python2.7/site-packages/panflute/io.py", line 265, in run_filter
    return run_filters([action], *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/panflute/io.py", line 249, in run_filters
    finalize(doc)
  File "/usr/local/lib/python2.7/site-packages/pandoc_latex_unlisted.py", line 40, in finalize
    doc.metadata['header-includes'].append(MetaInlines(RawInline('\\let\\oldaddcontentsline\\addcontentsline', 'tex')))
AttributeError: 'MetaBlocks' object has no attribute 'append'
Error running filter pandoc-latex-unlisted:
@chdemko
Copy link
Owner

chdemko commented May 12, 2018

What version of pandoc are you running? And can you post an sample file and command line that does not work.

chdemko added a commit that referenced this issue May 15, 2018
@chdemko chdemko closed this as completed May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants