Skip to content

Add the ability to define terms that are never word-broken #14164

@DarkArc

Description

@DarkArc

Is your feature request related to a problem? Please describe.

The problem is in documenting C++ code, what sometimes happens is you encounter something like:

/*some long text */ in C+
+ do this:

It would be nice if C++ did not wrap on the individual + characters, e.g.:

/*some long text */ in
C++ do this:

See also:
https://superuser.com/questions/1841412/preventing-word-break-in-markdown-and-rst

Describe the solution you'd like
I think the ideal is to add a set in the configuration of "project terms" both for searching purposes and line wrap purposes, so that Sphinx would understand these special technical words that contain symbols (that should not be wrapped).

Describe alternatives you've considered

A "don't break words" setting could also work. Presumably there's a reason why this is not done though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions