Skip to content

indent level not correctly reset when error happens in html #4414

Description

@pzinn

sample example. the problem can get a lot worse if the error is nested deep inside some Hypertext, resulting in unreadable html output and making debugging hard.

i1 : needsPackage"Text"

o1 = Text

o1 : Package

i2 : html DIV "a"

o2 = <div>
     a</div>


i3 : a=new Type of List; html a := x -> 1/0; b=new a;

i6 : new VerticalList from {b}

o6 = {{}}

o6 : VerticalList

i7 : html oo
stdio:3:36:(3):[17]: error: division by zero

i8 : html DIV "a"

o8 =     <div>
     a    </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions