~lioploum/offpunk

8be531e5e288b4ea50b272388fdbb20de42d68cf — Ploum 3 months ago 0fda6f5
a simple type was forcing images to be rendered twice
1 files changed, 1 insertions(+), 1 deletions(-)

M ansicat.py
M ansicat.py => ansicat.py +1 -1
@@ 131,7 131,7 @@ def inline_image(img_file,width):
        cmd = inlines.pop(0)%width + " %s"
        try:
            ansi_img = run(cmd, parameter=img_file)
            image_succes = True
            image_success = True
        except Exception as err:
            ansi_img = "***IMAGE ERROR***\n%s…\n…%s" %(str(err)[:50],str(err)[-50:])
    return ansi_img