Browse Source

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

Patch by Christopher Long
Dan Davison 15 năm trước cách đây
mục cha
commit
d2b9343029

+ 1 - 1
contrib/babel/lisp/langs/org-babel-octave.el

@@ -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