Changeset 2 for trunk/UFormImport.pas


Ignore:
Timestamp:
Apr 20, 2016, 6:29:54 PM (9 years ago)
Author:
chronos
Message:
  • Added: Support for loading mediawiki acronyms placed on one line.
  • Fixed: Do not try open non existent file.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      lib
      AcronymDecoder.exe
      AcronymDecoder.lps
  • trunk/UFormImport.pas

    r1 r2  
    6868    Line := Trim(Memo1.Lines[I]);
    6969    if Copy(Line, 1, 1) = ';' then begin
    70       AcronymName := Trim(Copy(Line, 2, Length(Line)));
     70      if Pos(':', Line) > 0 then begin
     71        AcronymName := Trim(Copy(Line, 2, Pos(':', Line) - 2));
     72        Line := Copy(Line, Pos(':', Line), Length(Line));
     73      end else AcronymName := Trim(Copy(Line, 2, Length(Line)));
    7174    end;
    7275    if Copy(Line, 1, 1) = ':' then begin
Note: See TracChangeset for help on using the changeset viewer.