Macaulay2 / Macaulay2/M2

indent level not correctly reset when error happens in html

Open
#4,414 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Documentation
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

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 =


a

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 =


a

```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the Macaulay2 REPL commands shown in the issue, especially the failing `html oo` evaluation followed by `html DIV "a"`. Trace the HTML rendering and error-handling path to find where indentation state is retained. Done means an error does not affect indentation in subsequent HTML output, including errors nested inside HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.