racket / racket/gui

Alt+Q reflow: behaviour change: text is moved on the same line as the opening brace

Open
#47 5 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

With Racket 6.6.0.5 (20160914-62f5b2c):

#lang scribble/manual
@defproc[(+ [x integer?] [y integer?]) integer?]{
 AAA BBB CCC DDD EEE FFF GGG HHH III JJJ KKK LLL.}

Pressing Alt+Q with the cursor somewhere in AAA … moves the AAA … on the same line as the opening brace:

#lang scribble/manual
@defproc[(+ [x integer?] [y integer?]) integer?]{ AAA BBB CCC DDD EEE FFF GGG
 HHH III JJJ KKK LLL.}

I think this was not the case before, and I personally preferred the old behaviour, because when the description for a @defproc is a large paragraph and the datum+contracts themselves span several lines, having the first line of description on the same line as some of the contracts doesn't make things very clear.

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 Alt+Q reflow behavior using the Scribble example in the issue, with the cursor in the description text. Start from the Alt+Q reflow command and compare the resulting line placement with the reported behavior; done means the opening brace and description follow the intended layout without moving text unexpectedly onto the brace line.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.