Skip to content

[Bug] Extraneous spaces in HTML #485

@TimidRobot

Description

@TimidRobot

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 normalized/tidy output (the HTML input is inconsistent)
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions