Open srolin opened 4 years ago
Breaking code:
generate('code39', my_bar_code, writer=ImageWriter(), output='fp_svg', writer_options={'add_checksum': False})
Continued to add a checksum.
I believe this is fixed. Lemme know if you still have any issues.
I still have this issue on version 0.14. Did something change?
c_barcode = '201822052211050114571102'
barcode.generate('code39', c_barcode, output='barcode_image', writer=ImageWriter(), writer_options={ 'add_checksum': False})
It renders a letter at the end of the generated code.
When using the generator function to create a 'Code39' barcode, the writer_options={'add_checksum': False} is ignored.
The addition of the check digit happens during the class init which hasn't received the writer_options.
I have a fix for this by moving the check into the render function and adding an instance variable to track when it has been added. (I wasn't sure if the render function could end up being called more than once and didn't want additional check digits adding.
Will create a PR for the fix.