JosephTLyons / JosephTLyons/text_align_rust

Should cases where the line is longer than the width return an error?

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently, we just return the original string if its too longer to process (in any of the alignments), but maybe this should be an error that the user handles. The user can choose to either quit out or dismiss the error and use the original string themselves.

Note that the Python alignment options simply return the string when the line is longer than the requested width, which is what we are doing now.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.