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

[Bug] Extraneous spaces in HTML #485

Open
1 task
TimidRobot opened this issue Oct 28, 2024 · 3 comments
Open
1 task

[Bug] Extraneous spaces in HTML #485

TimidRobot opened this issue Oct 28, 2024 · 3 comments
Labels
🕹 aspect: interface Concerns end-users' experience with the software 📄 aspect: text Concerns the textual material in the repository 🛠 goal: fix Bug fix help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed 🏁 status: ready for work Ready for work

Comments

@TimidRobot
Copy link
Member

Description

Due to a combination of string separation to aid translation and HTML formatting via BeautifulSoup4, the published HTML output includes extraneous spaces.

Example:

docs/licenses/by/4.0/legalcode.en.html lines 559-562:

       <strong>
        License grant
       </strong>
       .

Results in:
Screenshot 2024-10-28 at 10 15 57

Expectation

Extraneous whitespace should not be included in rendered / user-facing text.

Additional context

Requirements

  • The CC Legal Tools must support translations
  • The CC Legal Tools must have deterministic output (the published HTML must be machine formatted)

Documentation

Resolution

  • I would be interested in resolving this bug.
@TimidRobot TimidRobot added help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed 🏁 status: ready for work Ready for work 🛠 goal: fix Bug fix 📄 aspect: text Concerns the textual material in the repository 🕹 aspect: interface Concerns end-users' experience with the software labels Oct 28, 2024
@TimidRobot TimidRobot moved this to Backlog in Applications Oct 28, 2024
@TimidRobot
Copy link
Member Author

HTML formatting tools are surprisingly evasive. The best one I've encountered so far is Prettier · Opinionated Code Formatter, but I haven't found or developed a good way to integrate it into a Python project.

@LMDcoded
Copy link

Hi @TimidRobot! I’d be interested in working on this issue. I’ll start by exploring options to clean up the extra spaces without disrupting the translation structure. Will keep you posted on progress and any solutions I find. Thanks for outlining the context so clearly!

@VibhorShukla-BHRT
Copy link

HI @TimidRobot! I can resolve this issue, please assign this issue to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕹 aspect: interface Concerns end-users' experience with the software 📄 aspect: text Concerns the textual material in the repository 🛠 goal: fix Bug fix help wanted Open to participation from the community 🟩 priority: low Low priority and doesn't need to be rushed 🏁 status: ready for work Ready for work
Projects
Status: Backlog
Development

No branches or pull requests

3 participants