Skip to content

Fix: Remove first space char#240

Merged
bootandy merged 2 commits into
masterfrom
first_space
Aug 19, 2022
Merged

Fix: Remove first space char#240
bootandy merged 2 commits into
masterfrom
first_space

Conversation

@bootandy
Copy link
Copy Markdown
Owner

#230

PR Removes the first space if it is not needed.

Remove the constant '5' used in format. Now all paths use
num_chars_needed_on_left_most instead.
@bootandy bootandy force-pushed the first_space branch 3 times, most recently from 9588984 to c14ae42 Compare August 19, 2022 09:19
Before we assumed 5 chars for printing the size of a node. This change
allows us to check if we need 5 chars or if we can manage with 4 which
may save us a character.

(1023B = 5 chars, 1.2K = 4 chars)

Note: Mac test runners create very long filenames in tmp directories. To
fix this we must either
1) Tell the terminal it has a very wide width
2) Duplicate the code to reduce the size of the filename (add .. at the
   end).

This commit changes from (2) to (1)
@bootandy bootandy merged commit b62f352 into master Aug 19, 2022
@bootandy bootandy deleted the first_space branch August 23, 2022 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant