[racket] possible bug in scribble-pkgs / scribble-lib / scribble / html-render.rkt

From: Matthew Butterick (mb.list.acct at gmail.com)
Date: Thu Nov 7 21:20:12 EST 2013

I've posted a comment to the commit, and will study the issue further.

https://github.com/plt/racket/commit/7323dde0ea



On Thu, Nov 7, 2013 at 3:03 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> The intent of the "mywbr" span is to allow a line break between "/" and
> the following character (since we sometimes have long identifiers where
> characters like "/" are a helpful break point). The "mywbr" style sets
> the span width to 0 to avoid rendering any space.
>
>
> Danny Yoo was the last person to try to improve this. See
>
>  https://github.com/plt/racket/commit/29031f0972
>
> which he reverted with
>
>  https://github.com/plt/racket/commit/7323dde0ea
>
>
>
> At Wed, 6 Nov 2013 18:58:16 -0800, Matthew Butterick wrote:
> > Round about line 1494 is the following:
> >
> > '(span ([class "mywbr"]) " " nbsp))
> >
> > I believe this line is causing the (I assume unintended) side effect of
> > adding a spurious space after slashes within Racket commands in the
> > left-hand navigation in the documentation, for instance here:
> >
> >
> http://docs.racket-lang.org/reference/for.html?q=for/list#(part._.Iteration_and
> > _.Comprehension_.Forms)
> >
> >
> > So in the left nav, commands with slashes are displayed like this:
> >
> > for/ list
> > for/ vector
> > for/ hash
> > ...
> >
> > But they ought to appear like this:
> >
> > for/list
> > for/vector
> > for/hash
> > ...
> >
> >
> > Matthew Butterick
> > ____________________
> >   Racket Users list:
> >   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131107/6372e4a2/attachment-0001.html>

Posted on the users mailing list.