Mercurial > octave
changeset 23191:5f79bb3fdd28
* scripts/general/publish.m: Avoid creation of empty ouput blocks.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Fri, 17 Feb 2017 16:41:29 +0100 |
parents | 4a2c42792d6c |
children | 94f04d8172eb |
files | scripts/general/publish.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/publish.m Fri Feb 17 07:54:31 2017 +0100 +++ b/scripts/general/publish.m Fri Feb 17 16:41:29 2017 +0100 @@ -797,7 +797,7 @@ if (options.showCode) str = [str, formatter(cstr{i}.type, cstr{i}.content)]; endif - if (options.evalCode) + if ((options.evalCode) && (! isempty (cstr{i}.output))) str = [str, formatter("code_output", cstr{i}.output)]; endif case {"text", "section"}