Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed long terrain name overlapping the borders in Look Around window #46369

Merged
merged 1 commit into from Dec 28, 2020
Merged

Fixed long terrain name overlapping the borders in Look Around window #46369

merged 1 commit into from Dec 28, 2020

Conversation

Night-Pryanik
Copy link
Contributor

Summary

SUMMARY: Interface "Fixed long terrain name overlapping the borders in Look Around window"

Purpose of change

Close issue described in this forum post.

Describe the solution

Replaced trim_and_print with fold_and_print and fixed wrong value of width parameter.

Describe alternatives you've considered

Just fix the wrong value and left it trim instead of fold.

Testing

Found long terrain name, checked how it's folded. Checked short terrain name, checked that it's not folded.

Additional context

Before (pic from forum post):
изображение

After:
изображение

@Night-Pryanik Night-Pryanik added Info / User Interface Game - player communication, menus, etc. <Bugfix> This is a fix for a bug (or closes open issue) labels Dec 28, 2020
@kevingranade
Copy link
Member

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/break-line-in-look-around-description/25564/2

@ZhilkinSerg ZhilkinSerg merged commit 0d87a4d into CleverRaven:master Dec 28, 2020
@Night-Pryanik Night-Pryanik deleted the fix-long-location-name-in-look-around branch December 28, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants