瀏覽代碼

+ Fixed bug report from Ales Katona

michael 20 年之前
父節點
當前提交
3073c753a2
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      utils/fpdoc/fpdoc.pp

+ 10 - 6
utils/fpdoc/fpdoc.pp

@@ -87,11 +87,12 @@ begin
       Writeln(Format(SUsageFormatSpecific,[Lowercase(Backend)]));
       C:=GetWriterClass(backend);
       C.Usage(L);
-      For I:=0 to (L.Count-1) div 2 do
-        begin
-        S:=L[i*2];
-        Writeln(Format('%s %s',[S+Space(30-Length(S)),L[(i*2)+1]]));
-        end;
+      If L.Count>0 then
+        For I:=0 to (L.Count-1) div 2 do
+          begin
+          S:=L[i*2];
+          Writeln(Format('%s %s',[S+Space(30-Length(S)),L[(i*2)+1]]));
+          end;
       end;
   Finally
     L.Free;
@@ -283,7 +284,10 @@ end.
 
 {
   $Log$
-  Revision 1.8  2005-01-14 17:55:07  michael
+  Revision 1.9  2005-02-05 12:30:08  michael
+  + Fixed bug report from Ales Katona
+
+  Revision 1.8  2005/01/14 17:55:07  michael
   + Added unix man page output; Implemented usage
 
   Revision 1.7  2005/01/12 21:11:41  michael