Hosted by
|
package body Indent_Writers is
procedure Indent
(This : access Indent_Writer'Class) is
begin
This.Indent_Level := This.Indent_Level + 1;
end Indent;
procedure Unindent
(This : access Indent_Writer'Class) is
begin
This.Indent_Level := This.Indent_Level - 1;
end Unindent;
procedure Write_Indent
(This : access Indent_Writer'Class) is
begin
for Index in 1 .. This.Indent_Level * This.Indent_Count loop
Put(This, This.Indent_Char);
end loop;
end Write_Indent;
end Indent_Writers;
|