Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTD-5853 unidecode before textwrapping #306

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Tllew
Copy link
Contributor

@Tllew Tllew commented Feb 6, 2025

Issue:

  • hmrc requires a length of 35 per address line
  • lite-hmrc achieved this using textwrap
  • unidecode appended to the character count and we managed to go over

Things to note:
I had initially added the unidecode to edifact_validators so that the validator could catch the error and went back and forth with this idea for a little while, in theory because it's decoded now in the sanitizer (lite_to_edifact_converter) it will never hit the sanitizer with special characters present.
I have also added some coverage tests in test_builder so that we cant remove this and accidentally have things pass.
if we notice any other edge cases we could update the new payload file to include them

LTD-5853

…is mistake, if we notice any other edge cases we could update the new payload file to include them
@Tllew Tllew force-pushed the LTD-5853-unidecode-before-textwrap branch from ac849e5 to d18fe1d Compare February 6, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant