Skip to content

Conversation

@kmvanbrunt
Copy link
Member

No description provided.

@kmvanbrunt kmvanbrunt changed the title Truncate string Truncate line Jan 20, 2020
@codecov
Copy link

codecov bot commented Jan 20, 2020

Codecov Report

Merging #850 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #850      +/-   ##
==========================================
- Coverage   97.38%   97.37%   -0.02%     
==========================================
  Files          14       14              
  Lines        3561     3578      +17     
==========================================
+ Hits         3468     3484      +16     
- Misses         93       94       +1
Impacted Files Coverage Δ
cmd2/utils.py 97.68% <100%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2ffdefb...2f52a84. Read the comment docs.

tab_width=tab_width, truncate=truncate)


def truncate_line(line: str, max_width: int, *, tab_width: int = 4) -> str:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me

@tleonhardt tleonhardt merged commit e4bc87d into master Jan 21, 2020
@tleonhardt tleonhardt deleted the truncate_string branch January 21, 2020 02:50
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.

3 participants