Changeset 152 for trunk/Packages
- Timestamp:
- Jun 6, 2023, 5:05:18 PM (18 months ago)
- Location:
- trunk/Packages/VCard
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/VCard/VCard.lpk
r148 r152 57 57 <UnitName Value="VCardPackage"/> 58 58 </Item> 59 <Item> 60 <Filename Value="VCardProcessor.pas"/> 61 <UnitName Value="VCardProcessor"/> 62 </Item> 59 63 </Files> 60 64 <i18n> -
trunk/Packages/VCard/VCard.pas
r151 r152 1298 1298 var 1299 1299 I: Integer; 1300 ContactProperty: TContactProperty; 1300 1301 begin 1301 1302 inherited Sort(TComparer<TContact>.Construct(CompareContactFullName)); 1302 for I := 0 to Count - 1 do 1303 for I := 0 to Count - 1 do begin 1303 1304 Items[I].Properties.Sort(TComparer<TContactProperty>.Construct(ComparePropertyName)); 1305 1306 // Make sure VERSION is first property 1307 ContactProperty := Items[I].Properties.GetByName('VERSION'); 1308 if Assigned(ContactProperty) then begin 1309 Items[I].Properties.Move(Items[I].Properties.IndexOf(ContactProperty), 0); 1310 end; 1311 end; 1304 1312 end; 1305 1313 … … 1791 1799 LinePrefix: string; 1792 1800 CutLength: Integer; 1801 Cut: Boolean; 1793 1802 begin 1794 1803 with Output do begin … … 1814 1823 LineIndex := 0; 1815 1824 LinePrefix := ''; 1825 Cut := False; 1816 1826 while True do begin 1817 1827 if UTF8Length(OutText) > ParentVCard.MaxLineLength then begin 1828 Cut := True; 1818 1829 CutLength := ParentVCard.MaxLineLength; 1819 1830 if Encoding = veQuotedPrintable then begin … … 1837 1848 end else begin 1838 1849 Add(LinePrefix + OutText); 1850 if Cut then Add(''); 1839 1851 Break; 1840 1852 end; -
trunk/Packages/VCard/VCardPackage.pas
r148 r152 9 9 10 10 uses 11 VCard, QuotedPrintable, ContactImage, LazarusPackageIntf;11 VCard, QuotedPrintable, ContactImage, VCardProcessor, LazarusPackageIntf; 12 12 13 13 implementation
Note:
See TracChangeset
for help on using the changeset viewer.