|Anonymous | Login||12-08-2021 15:10 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0006842||[Squeak] Kernel||minor||always||01-08-08 23:11||01-22-08 21:46|
|Summary||0006842: Non-breaking spaces break code|
|Description||When code is copied from the web or other sources, non-breaking spaces may be used to format it properly. Although they look normal to the eye, they fail to compile properly.|
It's an easy fix. The second line of Scanner class>>initialize simply needs to include character 160, the non-breaking space, along with the others.
newTable atAll: #(9 10 12 13 32 160) put: #xDelimiter. "tab lf ff cr space nbspace"
Then, the fix is installed once you execute:
(0011643 - 218 - 218 - 218 - 218 - 218 - 218)
|In my opinion this amounts to a change to the language and should be considered carefully. It may be a good change, I don't know. I'm just suggesting that some discussion occur before 'officializing' this 'easy fix'.|
(0011705 - 544 - 580 - 580 - 580 - 580 - 580)
Yes these errors are annoying: how would our eyes distinguish a non breaking space from a regular space (except near end of lines)?
I would vote for the change.
Only problem i see is that it might get viral: methods saved with non breaking spaces in Monticello repositories can only be loaded in images with this change...
Maybe it would be good for backward and cross-dialect compatibility to replace with a regular space when saving the changes in the change file or Monticello... (But maybe not inside literal strings nor comments!)
|01-08-08 23:11||rootbeer||New Issue|
|01-08-08 23:11||rootbeer||Status||new => assigned|
|01-08-08 23:11||rootbeer||Assigned To||=> KenCausey|
|01-08-08 23:13||rootbeer||Issue Monitored: rootbeer|
|01-08-08 23:30||KenCausey||Assigned To||KenCausey =>|
|01-08-08 23:30||KenCausey||Status||assigned => new|
|01-08-08 23:30||KenCausey||Category||Any => Kernel|
|01-08-08 23:33||KenCausey||Note Added: 0011643|
|01-22-08 21:46||nicolas cellier||Note Added: 0011705|
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
44 total queries executed.|
33 unique queries executed.