871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
|
declare
Width : constant Screen_Offset
:= Single_Line_Quoted_Width (Data, Output.Param.Char_Encoding);
begin
if Fit_In_Line (Output, Blank_Width + Width) then
if Output.Need_Blank then
Output.Stream.Write ((0 => Encodings.Space));
end if;
Write_Quoted (Output, Data, True);
Output.Cursor := Output.Cursor + Blank_Width + Width;
Output.Need_Blank := False;
return;
end if;
if Indent_Width (Output) + Width <= Output.Param.Width then
Newline (Output);
Write_Quoted (Output, Data, True);
Output.Cursor := Output.Cursor + Width;
Output.Need_Blank := False;
return;
end if;
end;
end if;
-- Fall back on a universal token encoding
|
>
<
<
|
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
|
declare
Width : constant Screen_Offset
:= Single_Line_Quoted_Width (Data, Output.Param.Char_Encoding);
begin
if Fit_In_Line (Output, Blank_Width + Width) then
if Output.Need_Blank then
Output.Stream.Write ((0 => Encodings.Space));
Output.Cursor := Output.Cursor + 1;
end if;
Write_Quoted (Output, Data, True);
Output.Need_Blank := False;
return;
end if;
if Indent_Width (Output) + Width <= Output.Param.Width then
Newline (Output);
Write_Quoted (Output, Data, True);
Output.Need_Blank := False;
return;
end if;
end;
end if;
-- Fall back on a universal token encoding
|