autoType sequences must continue using double-backslashes for escaped characters

This commit is contained in:
Jeff Parsons 2017-06-17 11:23:38 -07:00 committed by Jeff Parsons
commit dbc21c3d85
2 changed files with 7 additions and 2 deletions

View file

@ -11,7 +11,7 @@ machines:
path: /disks/pcx86/dos/ibm/1.10/PCDOS110.json
B:
path: /apps/pcx86/1982/ratbas/RATBAS213.json
autoType: \r\rb:\rrt\r\xff\xf0test;\r
autoType: \\r\\rb:\\rrt\\r\\xff\\xf0test;\\r
---
RatBas (1982)

View file

@ -455,7 +455,12 @@ MarkOut.prototype.convertMD = function(sIndent)
if (sName == 'automount') sName = 'autoMount'; // for backward compatibility
if (sName == 'autotype') {
sName = 'autoType';
sValue = sValue.replace(/\\/g, "\");
/*
* To maintain parity with Jekyll, autoType sequences must continue to use double backslashes,
* so my attempt to automatically "double" any backslashes in autoType sequences was for naught.
*
* sValue = sValue.replace(/\\/g, "\");
*/
}
if (!id && sName == 'id') {
id = sValue;