Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@IllianiBird
Copy link
Collaborator

@IllianiBird IllianiBird commented Jul 23, 2024

A word wrap function has been added to the WrapLayout class to handle excessively long lines of text. This function has been integrated into the TROView class, ensuring text from various sources (overview, capabilities, deployment, history, manufacturer, factory) doesn't exceed a set limit of 200 characters per line.

This PR is needed to resolve MegaMek/mekhq#4474 and is the MegaMek half of MegaMek/mekhq#4475

A word wrap function has been added to the WrapLayout class to handle excessively long lines of text. This function has been integrated into the TROView class, ensuring text from various sources (overview, capabilities, deployment, history, manufacturer, factory) doesn't exceed a set limit of 200 characters per line.
@IllianiBird IllianiBird added Bug Any kind of issue that cannot be fixed without code changes GUI User Interface MHQ-origin MM Issues Issues in MegaMek that originate from MekHQ. labels Jul 23, 2024
@IllianiBird IllianiBird self-assigned this Jul 23, 2024
@codecov
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.06%. Comparing base (ed1513c) to head (9989a87).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5780      +/-   ##
============================================
- Coverage     29.07%   29.06%   -0.01%     
+ Complexity    13906    13903       -3     
============================================
  Files          2507     2507              
  Lines        266309   266321      +12     
  Branches      47599    47601       +2     
============================================
- Hits          77418    77414       -4     
- Misses       184968   184985      +17     
+ Partials       3923     3922       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IllianiBird IllianiBird merged commit 5a5c329 into MegaMek:master Jul 23, 2024
@IllianiBird IllianiBird deleted the personalities_displayBug_megaMek branch March 23, 2025 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Any kind of issue that cannot be fixed without code changes GUI User Interface MHQ-origin MM Issues Issues in MegaMek that originate from MekHQ.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infantry personalty description is too wide

2 participants