racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
454 stars 93 forks source link

Indentation of text in `{}` seems to depend on nesting of `[]`. #317

Open florence opened 5 years ago

florence commented 5 years ago

The following program is indented with cmd-i:

#lang scribble/base

@list[@list[1]{
       Some text.
       }]

@list[@list[@list[1]{
                   Some text.
                   }]]

I would expect both instances of Some text. to be aligned with their respective list[1], but for some reason the second one is indented farther in.

rfindler commented 5 years ago

This one seems like it might be a straightforward fix; same code as the previous one. There are lots of tests already.

https://github.com/racket/gui/tree/master/gui-lib/scribble/private