You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Folding lines when the end of line character(s) is crosses the 75th character boundary.
In this example the second label creates a blank fold.
------------------------ Original code creates a fold
LABEL:333 LANCASTER AVE APT 3\nFORT WORTH\nTX\n12345\nUSA
LABEL:123 LONGFORD DR UNIT 12\nDALLAS\nTX\n54321\nUNITED STATES OF AMERICA
PHOTO;ENCODING=b;TYPE=JPEG:/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRo
Adding a test that trims the text before checking string length passes, returning the example Label
with original eol intact and no fold.
------------------------ After trim test no fold
LABEL:333 LANCASTER AVE APT 3\nFORT WORTH\nTX\n12345\nUSA
LABEL:123 LONGFORD DR UNIT 12\nDALLAS\nTX\n54321\nUNITED STATES OF AMERICA
PHOTO;ENCODING=b;TYPE=JPEG:/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRo
The text was updated successfully, but these errors were encountered:
Server: Debian 9
Install: Composer package jeroendesloovere / vcard
Framework: Laravel 5.8
Issue: vcard.php function: fold
Folding lines when the end of line character(s) is crosses the 75th character boundary.
In this example the second label creates a blank fold.
------------------------ Original code creates a fold
Adding a test that trims the text before checking string length passes, returning the example Label
with original eol intact and no fold.
------------------------ After trim test no fold
The text was updated successfully, but these errors were encountered: