Skip to content

Pretty printing using MIDDLE DOT unicode character instead of DOT OPERATOR #2272

@rikardn

Description

@rikardn

The pretty printing uses "·" U+00B7 (MIDDLE DOT) instead of the more appropriate "⋅" (U+22C5, DOT OPERATOR)

Example:

from pint import UnitRegistry
ureg = UnitRegistry()
f"{ureg("kg*m").units:~P}"
'kg·m'

The output should be
kg⋅m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions