Skip to content

Commit

Permalink
Fix basic ascii rendering (#329)
Browse files Browse the repository at this point in the history
This fixes `papyri ascii <object>`.

Closes #311
  • Loading branch information
Carreau authored Nov 17, 2023
2 parents dcc330c + 39095e2 commit 97d0ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papyri/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ async def _ascii_render(key: Key, store: GraphStore, *, env, template):

async def ascii_render(name, store=None):
gstore = GraphStore(ingest_dir, {})
key = next(iter(gstore.glob((None, None, "module", "papyri.examples"))))
key = next(iter(gstore.glob((None, None, "module", name))))

env, template = _ascii_env()
builtins.print(await _ascii_render(key, gstore, env=env, template=template))
Expand Down

0 comments on commit 97d0ad1

Please sign in to comment.