8000 Unpredictable indentation in `pre` element · Issue #17 · realnc/qtads · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unpredictable indentation in pre element #17
Open
@dscorbett

Description

@dscorbett

QTads 3.3.0 unpredictably indents lines with leading spaces in pre elements.

bug.zip contains a T3 image and its source code. The important part of the source code is:

    showIntro
    {
        "<pre>";
"    <font color=#19177C>aaaaaaaaaaa</font> a <font color=#BA2121>aaaaaa aaaaaaa</font><b><font color=#AA5D1F>a</font></b><b><font color=#008000>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</font></b><font color=#BA2121>'</font><br>";
"    <font color=#19177C>aaaa</font> a <font color=#BA2121>aaaa aaaaaa aa aaaaaaaaaa a aaaaaaaaaaaa aaa aaaa aaaaaaaa aaaaaaa</font><br>";
        "</pre>";
    }

In QTads, the second line is only indented one space. Compare FrobTADS and the Web UI, which display it properly with both lines indented by four spaces.
The Bug Demo

Changing the first line’s apostrophe from ' to the HTML entity &#39; fixes the indentation in QTads. Alternatively, changing the game’s name from “The Bug Demo” to “Bug Demo” also fixes the indentation. It is unclear why either change would have any effect on the indentation of the second line.
Bug Demo

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

      0