racket / racket/gui

Incorrect indentation with more than one level of "@…["

Open
#44 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

From @jsmaniac on August 26, 2016 23:41

#lang scribble/lp2
@itemlist[
 @item{Foo
  @itemlist[
 @item{Bar}]}]

The file above should likely indent as:

#lang scribble/lp2
@itemlist[
 @item{Foo
  @itemlist[
   @item{Bar}]}]

Another example which does not mix [ and {:

@itemlist[
 @item[
 "Foo"
 @itemlist[
 @item["Bar"]]]]

which should indent as:

@itemlist[
 @item[
  "Foo"
  @itemlist[
   @item["Bar"]]]]

Copied from original issue: racket/scribble#55

Contributor guide

Open the contributing guide

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

Reproduce the two indentation examples from the issue in the relevant Scribble/Racket editor or formatting entry point. Trace how nested @itemlist and @item forms determine indentation, then verify that both examples match the expected spacing.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.