racket / racket/gui

Alt+Q reflow on blank line collapses everything before until the top of the file

Open
#46 0 comments 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

Using Racket v 6.6.0.5 (20160914-62f5b2c):

#lang scribble/manual

@defproc[(+ [x integer?] [y integer?]) integer?]{
 AAA.}

@defproc[(* [x integer?] [y integer?]) integer?]{

 BBB.}

@defproc[(/ [x integer?] [y integer?]) integer?]{

 CCC.}

Pressing Alt+Q with the cursor on the blank line just above BBB. produces the following result, with all the lines preceeding BBB. concatenated at the top:

#lang scribble/manual  @defproc[(+ [x integer?] [y integer?]) integer?]{  AAA.}  @defproc[(* [x integer?] [y integer?]) integer?]{

 BBB.}

@defproc[(/ [x integer?] [y integer?]) integer?]{

 CCC.}

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 issue in the Racket GUI editor using the Scribble example in the report, placing the cursor on the blank line before BBB. and pressing Alt+Q. Trace the Alt+Q reflow entry point and add a regression test if the project has coverage for this command; done means text before the cursor remains separated and only the intended region is reflowed.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.