-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Remove substitution of non-breakable spaces #897
Conversation
@kephas: Is it possible add tests to this PR?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know much about this part of the code...
|
@davisjam |
So here's a thought... if someone uses https://github.github.com/gfm/#indented-code-blocks then the "content editable div" will convert those 4 normal typed spaces into 1 normal space and 3 |
I agree with @Martii, I would think that most people who enter a If someone is going to enter |
So let's see if I understand the situation: we can't tell with complete certainty whether a If the majority of the I suspect that most of the |
I fear that you are basing your assumptions on english writers. In French, for example, it is a requirement to have a space before double punctuations like [;:?!]. Some text editors actually do this for you and do this, with good reason, not with a normal space but an unbreakable space, because that punctation should not be orphaned, typographically speaking. |
Possible solutions that work for both parties:
|
3)) NON-BREAKING Could work but a default of 1)) 👍 1)) NON-BREAKING ❓ Couldn't those few languages that punctuate uniquely write their own 2)) BREAKING 👎 Mentioned at #897 (comment) and that's probably not the only one that needs real spaces. Misc note: Russian, Spanish, etc. doesn't use an extra space and it's definitely not English. So moot point. A)) NON-BREAKING ❓ Seems like CSS and/or the browser default language via should handle this although I've never seen a rule like this. B)) NON-BREAKING ❓ Some html metadata... Ex. http://nimbupani.com/declaring-languages-in-html-5.html |
@kephas You are correct that I was only considering English-language practices in my summary. @UziTech Thanks for the proposals. I like the "offer an option for this" approach (3), and I think @Martii's suggestion of using substitution as the default is the right choice. I don't want to ask users to supply a mix of options and ad hoc substitutions, as suggested in (1). |
Option 1 means we would never be 100% spec compliant as stated on #1398 Also, we could create a FAQ section on README to include this case and #252. |
tl;dr let's just stop replacing I understand the wish for backward compatibility, even for existing "broken" practices like typing nbspaces instead of regular spaces (even though it seems we wouldn't bother as many people as we might think, as @UziTech pointed out in the linked issue), but I'm more in favor of letting the user decide when to use nbspaces, without having to use any hack like If we'd like to retain some backward compatibility, I'm wondering if we should branch the development process into two parallel lines, whereas we would introduce fixes and breaking changes on the e.g. |
Fixes #640
Fixes #363