babel: Avoid trouble with '%' in matlab/octave output

Patch by Christopher Long
This commit is contained in:
Dan Davison 2010-05-02 18:25:41 -04:00
parent b1f1cdda40
commit d2b9343029
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ then create. Return the initialized session."
"%s
if ischar(ans)
fid = fopen('%s', 'w')
fprintf(fid, ans)
fprintf(fid, '%%s', ans)
fprintf(fid, '\\n')
fclose(fid)
else