diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-02-06 13:34:23 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-02-06 13:34:23 +1100 |
commit | 8f2f6a5e2074a5da684f9f1a5f5e8f3c51a82b76 (patch) | |
tree | 2b11d86d759867e35db6489743355d2761c5bb53 /src/csv.adb | |
parent | c2f324ac23ea143dfea308229f0ac0376ed4f745 (diff) |
More or less completed main procedure, fixed some bugs
Diffstat (limited to 'src/csv.adb')
-rw-r--r-- | src/csv.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/csv.adb b/src/csv.adb index eab633b..1b8fd7f 100644 --- a/src/csv.adb +++ b/src/csv.adb @@ -28,7 +28,11 @@ package body CSV is exit when SU.Length (This_In) > 0 and then SU.Element (This_In, 1) = Quote; end loop; Output := Result; - Remaining := SU.Tail (This_In, SU.Length (This_In) - 1); + if SU.Length (This_In) > 0 then + Remaining := SU.Tail (This_In, SU.Length (This_In) - 1); + else + Remaining := SU.To_Unbounded_String (0); + end if; return True; else return False; |