Spaces:
Runtime error
Runtime error
text-2-character-anim
/
pyrender
/.eggs
/pyglet-2.0.5-py3.10.egg
/pyglet
/text
/formats
/plaintext.py
"""Plain text decoder. | |
""" | |
import pyglet | |
class PlainTextDecoder(pyglet.text.DocumentDecoder): | |
def decode(self, text, location=None): | |
document = pyglet.text.document.UnformattedDocument() | |
document.insert_text(0, text) | |
return document | |