JuliaPhysics / JuliaPhysics/Unitful.jl

Use Typographically Correct Spacing

Open
#735 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

Instead of the regular space `' '` (U+0020) between the numeric value and the unit, a [narrow no-break space should be used](https://en.wikipedia.org/wiki/Non-breaking_space#Width_variation) `' '` (U+202F).

This obviously does not always make a difference in appearance, e.g. when being used on the REPL with a fixed-size font, but sometimes it does and especially for correct copy-pase behavior.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the formatting path that places a space between a numeric value and its unit, then inspect any existing tests for rendered quantities. Update the relevant output behavior to use U+202F and verify that the resulting text preserves the intended narrow non-breaking spacing and copy-paste behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.