Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Different horizontal positioning of < and >

edited June 2015 in OpenSesame

Why would the horizontal position of < and > differ when displayed? Attached image shows an example using mono font. Same happens with Courier.

image

Comments

  • edited June 2015

    Hi,

    The '<' and '>' brackets are usually part of HTML tags, as described here:

    I'm not sure what exactly happens here, but it looks the parser tries to interpret this as HTML and fails (of course, because it's not HTML). And this messes up the spacing. Simply unchecking the HTML option for this element in the sketchpad should fix it.

    Cheers!
    Sebastiaan

  • edited 5:01PM

    I hadn't considered HTML as the cause, thanks! This is an inline_script, so I've confirmed that canvas.text(..., html=False) resolves the problem.

Sign In or Register to comment.