GithubHelp home page GithubHelp logo

pyptx-templar's People

Watchers

 avatar

Forkers

aghodsi

pyptx-templar's Issues

slide_replace throws error

If I am not mistaken slide_replace takes a slide object and the replacement values in a dict (for **kwarg).
so I call it like slide_replace(slide_object, **kwargs)

However, it is throwing the following error, am I missing something? I understand that the there is no _idx found, but given I am providing a slide index, and the signature doesn't support it, I guess there is a bug somewhere.

...
File "\venv\lib\site-packages\pyptx_templar\placeholder.py", line 337, in slide_replace
textframe_replace(sh.text_frame, **kwargs, _sl=slide)
File "\venv\lib\site-packages\pyptx_templar\placeholder.py", line 215, in textframe_replace
paragraph_replace(par, **kwargs, _tf=tf)
File "\venv\lib\site-packages\pyptx_templar\placeholder.py", line 139, in paragraph_replace
run_replace(run, **kwargs, _p=par)
File "\venv\lib\site-packages\pyptx_templar\placeholder.py", line 107, in run_replace
val = str(interp(m.group(1), **kwargs))
File "\venv\lib\site-packages\pyptx_templar\placeholder.py", line 73, in interp
context = f"[Slide {kwargs['_idx']}]"
KeyError: '_idx'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.