Changeset 231 for trunk/Acronym.pas


Ignore:
Timestamp:
Jan 25, 2025, 12:11:20 PM (8 days ago)
Author:
chronos
Message:
  • Fixed: Error on new acronym cateogry addition.
  • Added: New import source from Wikipedia aviation acronyms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Acronym.pas

    r230 r231  
    276276  SSkip = 'Skip';
    277277  SRemoveOnStart = 'Remove on start';
     278  SCleanSet = 'Clean set';
    278279  SUnsupportedAuthMethod = 'Unsupported HTTP authorization method';
    279280  SFileNotFound = 'File %s not found';
     
    291292  ImportPatternFlagString[ipfSkip] := SSkip;
    292293  ImportPatternFlagString[ipfRemove] := SRemoveOnStart;
     294  ImportPatternFlagString[ipfCleanSet] := SCleanSet;
    293295end;
    294296
     
    560562              P1 := Pos(StartString, S);
    561563              if P1 > 0 then begin
    562                 P2 := Pos(TImportPattern(Format.ItemPatterns[(I + 1) mod
    563                   Format.ItemPatterns.Count]).StartString, S);
     564                P2 := Pos(Format.ItemPatterns[(I + 1) mod
     565                  Format.ItemPatterns.Count].StartString, S);
    564566                if (P2 > 0) and (P1 < P2) then Continue;
    565567              end;
     
    13831385  Result := '';
    13841386  for I := 0 to Count - 1 do
    1385     Result := Result + Items[I].Name + ',';
    1386   System.Delete(Result, Length(Result), 1);
     1387    Result := Result + Items[I].Name + ', ';
     1388  System.Delete(Result, Length(Result) - 1, 2);
    13871389end;
    13881390
Note: See TracChangeset for help on using the changeset viewer.