Skip to content

Character counting discrepancy #70

@longears

Description

@longears

Using this test scene:

sphere {z*4,1 pigment{rgb x} finish {ambient 1 diffuse 0}}
//--------------------------------------------------
//----------------------------
//------------------------------------------------------
//----------------------------------------------------

The text box says "2 characters left" but when I submit it I get the error "Shortcode is too long (maximum is 256 characters)".

This only seems to happen on multi-line scenes so I'd guess newlines are being counted differently in different places: either as one character \n or two characters \r\n.

The test scene is 254 characters if it uses \n and 258 characters if it uses \r\n.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions