Explorar o código

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

Patch by Christopher Long
Dan Davison %!s(int64=15) %!d(string=hai) anos
pai
achega
d2b9343029
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/babel/lisp/langs/org-babel-octave.el

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

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