blamario / canadian-income-tax

Calculating and filling the Canadian income tax forms
GNU General Public License v3.0
12 stars 0 forks source link

FDF parser does not handle escaped parentheses #2

Closed tadeokondrak closed 7 months ago

tadeokondrak commented 7 months ago

To reproduce:

The FDF generated:

<<
/T (Line_13000_Specify[0])
/V (\(testing\))
>>]
>>

The error:

% complete-canadian-taxes AB --t1 testing.pdf -o completed/ 
complete-canadian-taxes: >>]
>>]
>> 
<<
^
at line 112, column 1
expected string "]"
CallStack (from HasCallStack):
  error, called at app/Main.hs:122:19 in main:Main
blamario commented 7 months ago

Good catch! That's actually a problem with the https://github.com/blamario/forms-data-format library, I'll fix it there ASAP.