Skip to content

Commit f0a6020

Browse files
GAPgap
authored andcommitted
Make use of new Info handler functionality wrt. output streams.
git-svn-id: path/gapdoc/trunk@335
1 parent 555a8b6 commit f0a6020

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

init.g

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
# An alternative Info handler which does not print implicit "#I " and "\n"
1111
BindGlobal("PlainInfoHandler",
1212
function ( infoclass, level, list )
13-
local out, s;
14-
out := InfoData.Output[InfoData.LastClass![1]];
13+
local cl, out, s;
14+
cl := InfoData.LastClass![1];
15+
if IsBound(InfoData.Output[cl]) then
16+
out := InfoData.Output[cl];
17+
else
18+
out := DefaultInfoOutput;
19+
fi;
1520
for s in list do
1621
AppendTo( out, s );
1722
od;

0 commit comments

Comments
 (0)