forked from mirrors/org-mode
babel: Avoid trouble with '%' in matlab/octave output
Patch by Christopher Long
This commit is contained in:
parent
b1f1cdda40
commit
d2b9343029
|
@ -113,7 +113,7 @@ then create. Return the initialized session."
|
||||||
"%s
|
"%s
|
||||||
if ischar(ans)
|
if ischar(ans)
|
||||||
fid = fopen('%s', 'w')
|
fid = fopen('%s', 'w')
|
||||||
fprintf(fid, ans)
|
fprintf(fid, '%%s', ans)
|
||||||
fprintf(fid, '\\n')
|
fprintf(fid, '\\n')
|
||||||
fclose(fid)
|
fclose(fid)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue