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

fix: Remove erroneously added non-specced spaces #498

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

toshify
Copy link
Collaborator

@toshify toshify commented Jul 30, 2024

Because we add spaces to cloze and comprehension exercises without checking the relevant flags in the spec,
we always add spaces between words indiscriminately. The presentation of text should instead add spaces only when specified.

This commit will:

  • update the exercise generator to actually pass the inject spaces-flag on to the renderer
  • update the renderer to more robustly present spaces

Certification

  • I certify that
  • I have read the contributing guidelines
  • I license these contributions to the public under Seedlingo's LICENSE and have the rights to do so.

Because we add spaces to cloze and comprehension exercises
without checking the relevant flags in the spec,
we always add spaces between words indiscriminately.
The presentation of text should instead add spaces only when specified.

This commit will:
- update the exercise generator to actually pass the inject spaces-flag
  on to the renderer
- update the renderer to more robustly present spaces

**Certification**
- [X] I certify that <!-- Check the box to certify: [X] -->
- I have read the [contributing guidelines](
  https://github.com/nodepa/seedlingo/blob/main/.github/CONTRIBUTING.md)
- I license these contributions to the public under Seedlingo's
  [LICENSE](https://github.com/nodepa/seedlingo/blob/main/LICENSE.md)
  and have the rights to do so.

Signed-off-by: toshify <4579559+toshify@users.noreply.github.com>
@toshify toshify force-pushed the fix/remove-erroneous-spaces branch from f912354 to 2d84013 Compare July 30, 2024 21:40
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-498.dheqk4e07yyd1.amplifyapp.com

@toshify toshify merged commit 858832a into nodepa:main Jul 30, 2024
3 checks passed
@toshify toshify deleted the fix/remove-erroneous-spaces branch July 30, 2024 21:48
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