New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/doc: reconsider comment rewrites of ''
to ”
#54312
Comments
I had to put my glasses on to see the difference at my regular zoom level, so I think you're right :) And this is on a 25" monitor, let alone a tiny phone screen. |
cc @rsc |
Another example is when docs refer to the empty string, specifically JS where strings aren't necessarily double quoted, leading to undesirable doc replacements (and apparently, inserting quotes at the start/end of paragraphs that are not quotes?) as in: evanw/esbuild@296870e |
An example from #56380 (
|
I recently encountered a particularly annoying case of this behavior. I wanted to write this:
But no matter what I do, it keeps being turned into this:
This replacement makes no sense, and is not helpful at all. Really hoping this behavior can be reverted. |
In ae3d890 as part of addressing #51082, a change was made to go/doc that rewrite all
''
to”
. This makes semantic changes to comments where'
is used as a prime and''
is used as double prime, common in mathematical code.This was raised in #51082 (comment) but essentially disregarded. A work around was suggested,
However on investigation with relevant fonts (the font here and the font used by pkg.go.dev) at 100%, U+2033 DOUBLE PRIME is barely distinguishable from U+2032 PRIME and worse, also barely distinguishable from other commonly used marks in the same position such as '*' (Comparison: f′ f″ f* ).
The change has made it harder to read these comments, harder to write them in a way that doesn't get mutated and easier for incorrectly formatted comments to be committed (f'' getting mutated to f” which is essentially indistinguishable from f″ at normal font sizes).
The text was updated successfully, but these errors were encountered: