Mercurial > octave-nkf
comparison scripts/help/__makeinfo__.m @ 18631:2633b5f3106a stable
__makeinfo__: Process Texinfo docstrings without type conversion (bug #41965)
* __makeinfo__.m: Use fprintf instead of fwrite to pass Texinfo docstrings to
the makeinfo program without type conversion.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Thu, 27 Mar 2014 23:42:02 -0400 |
parents | 1500ae1a1bea |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
18627:3e53eca42f00 | 18631:2633b5f3106a |
---|---|
121 template = "octave-help-XXXXXX"; | 121 template = "octave-help-XXXXXX"; |
122 [fid, name] = mkstemp (fullfile (tempdir, template), true); | 122 [fid, name] = mkstemp (fullfile (tempdir, template), true); |
123 if (fid < 0) | 123 if (fid < 0) |
124 error ("__makeinfo__: could not create temporary file"); | 124 error ("__makeinfo__: could not create temporary file"); |
125 endif | 125 endif |
126 fwrite (fid, text); | 126 fprintf (fid, "%s", text); |
127 fclose (fid); | 127 fclose (fid); |
128 | 128 |
129 ## Take action depending on output type | 129 ## Take action depending on output type |
130 switch (lower (output_type)) | 130 switch (lower (output_type)) |
131 case "plain text" | 131 case "plain text" |