diff --git a/lib/streams.gi b/lib/streams.gi index b834213626..0230f88891 100644 --- a/lib/streams.gi +++ b/lib/streams.gi @@ -1669,7 +1669,7 @@ InstallMethod( SetPrintFormattingStatus, "for non-text output stream", fi; CheckValidPrintFormattingStatus(stat); - if (( IsBool(stat) and stat = true ) or + if (( IsBool(stat) and stat = true ) or ( IsRecord(stat) and (stat.linewrap or stat.indent) ) ) then Error("non-text streams do not support print formatting"); fi;