autoType sequences must continue using double-backslashes for escaped characters

This commit is contained in:
Jeff Parsons 2017-06-17 11:22:33 -07:00 committed by Jeff Parsons
commit 87a77c0481
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 path: /disks/pcx86/dos/ibm/1.10/PCDOS110.json
B: B:
path: /apps/pcx86/1982/ratbas/RATBAS213.json 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) RatBas (1982)

View file

@ -455,7 +455,12 @@ MarkOut.prototype.convertMD = function(sIndent)
if (sName == 'automount') sName = 'autoMount'; // for backward compatibility if (sName == 'automount') sName = 'autoMount'; // for backward compatibility
if (sName == 'autotype') { if (sName == 'autotype') {
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') { if (!id && sName == 'id') {
id = sValue; id = sValue;