MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
296 stars 280 forks source link

Enhance `wordWrap` with HTML Tags for Line Breaks #6053

Open IllianiCBT opened 19 hours ago

IllianiCBT commented 19 hours ago

Added HTML tags to the wordWrap method to ensure proper line breaks using <br> instead of newline characters. This change improves the rendering of wrapped text in HTML contexts by enclosing the output in <html> tags.

This resolves a bug with tooltips used in the updated MekHQ DateChooser.

codecov[bot] commented 19 hours ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 29.06%. Comparing base (db3216f) to head (bc96356). Report is 36 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6053 +/- ## ========================================= Coverage 29.06% 29.06% Complexity 13981 13981 ========================================= Files 2601 2600 -1 Lines 267592 267586 -6 Branches 47792 47791 -1 ========================================= Hits 77771 77771 + Misses 185919 185913 -6 Partials 3902 3902 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.