Skip to content

Generics in ticket names are escaped in an ugly way by the script #7575

Description

@teor2345

Currently, when a ticket name contains a generic, it gets escaped with backslashes. Some escaping is required to avoid it being recognised as a valid or invalid HTML tag.

For example:

This looks ugly on the website, because the backslashes are rendered in the link name.

There are two alternatives:

  • escape the < and > using URL encoding - this is the correct method for links, and probably works for names as well
  • escape the entire type name with backticks - this is the best way to render, but it's tricky to program, because ideally you want:
`PartialEq<u32>` not PartialEq`<u32>`
`PartialEq<Option<u32>>` not PartialEq`<Option`<u32>`>`

This issue is similar to parentheses: #6403

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions