Hi,
I just noticed that in https://seven.centos.org/2017/06/updated-centos-vagrant-images-available-v17...
line that reads about sync folders
config.vm.synced_folder “.”, “/vagrant”, type: “virtualbox”
uses the wrong symbol for strings (") and after copying into Vagrantfile causes a cryptic error message.
Cheers, Rafal
Hi Rafal,
On Thu, Jun 22, 2017 at 5:49 PM Rafal Skolasinski r.j.skolasinski@gmail.com wrote:
I just noticed that in https://seven.centos.org/2017/06/updated-centos-vagrant-images-available-v17...
line that reads about sync folders
config.vm.synced_folder “.”, “/vagrant”, type: “virtualbox”
uses the wrong symbol for strings (") and after copying into Vagrantfile causes a cryptic error message.
This is caused by Wordpress' typography "feature" that changes regular quotes into "smart quotes" everywhere, even in <code> elements. There's no Wordpress setting to disable that, as far as I know, but it seems doable via plugins. [1]
I remember we received complaints in the past about copy&paste of code examples being broken (in blog comments on seven.c.o). Since I only have "author" privileges in Wordpress, there's nothing I can do about it myself, but it's good you brought it up here. I think such typography features make less sense for technical blogs like ours than they do for humanistic contents.
Any thoughts from a seven.c.o admin?
Regards, Laurențiu
[1] http://www.lancebledsoe.com/how-to-turn-off-wordpress-smart-quotes/
On 22/06/17 18:31, Laurențiu Păncescu wrote:
Hi Rafal,
On Thu, Jun 22, 2017 at 5:49 PM Rafal Skolasinski <r.j.skolasinski@gmail.com mailto:r.j.skolasinski@gmail.com> wrote:
I just noticed that in https://seven.centos.org/2017/06/updated-centos-vagrant-images-available-v1705-01/ line that reads about sync folders config.vm.synced_folder “.”, “/vagrant”, type: “virtualbox” uses the wrong symbol for strings (") and after copying into Vagrantfile causes a cryptic error message.
This is caused by Wordpress' typography "feature" that changes regular quotes into "smart quotes" everywhere, even in <code> elements. There's no Wordpress setting to disable that, as far as I know, but it seems doable via plugins. [1]
I remember we received complaints in the past about copy&paste of code examples being broken (in blog comments on seven.c.o). Since I only have "author" privileges in Wordpress, there's nothing I can do about it myself, but it's good you brought it up here. I think such typography features make less sense for technical blogs like ours than they do for humanistic contents.
Any thoughts from a seven.c.o admin?
Regards, Laurențiu
[1] http://www.lancebledsoe.com/how-to-turn-off-wordpress-smart-quotes/
That "plugin" looks sane and shouldn't be intrusive so we can enable it (and so not be afraid of a compatibility issue for next WP update)
Let me enable it and see how it goes
Hi,
I noticed that next line of code, the one with ``disabled: true`` has proper " so I thought it was just typo.
Best, Rafal
On 22 June 2017 at 18:49, Fabian Arrotin arrfab@centos.org wrote:
On 22/06/17 18:31, Laurențiu Păncescu wrote:
Hi Rafal,
On Thu, Jun 22, 2017 at 5:49 PM Rafal Skolasinski <r.j.skolasinski@gmail.com mailto:r.j.skolasinski@gmail.com> wrote:
I just noticed that in https://seven.centos.org/2017/06/updated-centos-vagrant-
images-available-v1705-01/
line that reads about sync folders config.vm.synced_folder “.”, “/vagrant”, type: “virtualbox” uses the wrong symbol for strings (") and after copying into Vagrantfile causes a cryptic error message.
This is caused by Wordpress' typography "feature" that changes regular quotes into "smart quotes" everywhere, even in <code> elements. There's no Wordpress setting to disable that, as far as I know, but it seems doable via plugins. [1]
I remember we received complaints in the past about copy&paste of code examples being broken (in blog comments on seven.c.o). Since I only have "author" privileges in Wordpress, there's nothing I can do about it myself, but it's good you brought it up here. I think such typography features make less sense for technical blogs like ours than they do for humanistic contents.
Any thoughts from a seven.c.o admin?
Regards, Laurențiu
[1] http://www.lancebledsoe.com/how-to-turn-off-wordpress-smart-quotes/
That "plugin" looks sane and shouldn't be intrusive so we can enable it (and so not be afraid of a compatibility issue for next WP update)
Let me enable it and see how it goes
-- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
On Thu, Jun 22, 2017 at 7:02 PM, Rafal Skolasinski < r.j.skolasinski@gmail.com> wrote:
I noticed that next line of code, the one with ``disabled: true`` has proper " so I thought it was just typo.
Certainly not a typo in the sense of actually typing these characters myself (I've never typed them in my life). But you're right, one of the lines contains proper quotes for Ruby, and the other doesn't. Perhaps it makes a difference whether you type text in the Wordpress editor or paste it from the clipboard? Wordpress' visual vs text editor might also do this different things (the latter also inserts <p> tags that aren't in the HTML code you type). I also found another post with proper quotes, which I assume was pasted rather than typed:
https://seven.centos.org/2016/11/introducing-centos-container-image-scanners...
I'll try to edit the faulty line, or eventually paste it from vim into Wordpress.
Best regards, Laurențiu
Cool! I'm glad it was helpful to bring that issue to you.
Cheers, Rafal
On 22 June 2017 at 21:38, Laurențiu Păncescu lpancescu@gmail.com wrote:
On Thu, Jun 22, 2017 at 7:02 PM, Rafal Skolasinski < r.j.skolasinski@gmail.com> wrote:
I noticed that next line of code, the one with ``disabled: true`` has proper " so I thought it was just typo.
Certainly not a typo in the sense of actually typing these characters myself (I've never typed them in my life). But you're right, one of the lines contains proper quotes for Ruby, and the other doesn't. Perhaps it makes a difference whether you type text in the Wordpress editor or paste it from the clipboard? Wordpress' visual vs text editor might also do this different things (the latter also inserts <p> tags that aren't in the HTML code you type). I also found another post with proper quotes, which I assume was pasted rather than typed:
https://seven.centos.org/2016/11/introducing-centos- container-image-scanners/
I'll try to edit the faulty line, or eventually paste it from vim into Wordpress.
Best regards, Laurențiu
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
On 22/06/17 21:41, Rafal Skolasinski wrote:
Cool! I'm glad it was helpful to bring that issue to you.
Thanks! I just updated all release announcements from 1705 down to 1610, where that line was first added (editing in Wordpress' text editor seems not to mangle the quotes - not sure if Fabian already installed that plugin).
Laurențiu