MegaMek / mekhq

MekHQ is a java helper program for the MegaMek game that allows users to load a list of entities from an XML file, perform repairs and customizations, and then save the new entities to another XML file that can be loaded into MegaMek.
http://megamek.org
131 stars 168 forks source link

MHQ doesn't respect \n in SPA hover-overs #4921

Closed repligator closed 2 days ago

repligator commented 4 days ago

Prerequisites and Pre-Issue Checklist

Severity *

Low (Minor/Nuisance): Minor glitches or cosmetic issues that don’t affect gameplay and occur rarely.

Brief Description *

In the code, the description for the forest ranger SPA is as follows Movement in woods or jungle costs 1 less MP.\nUsing walk/cruise MP while in woods/jungle gives +1 BTH when being attacked.\nAdditionally, you gain -1 to PSR checks in Jungle terrain.

In MM it renders as follows: Movement in woods or jungle costs 1 less MP. Using walk/cruise MP while in woods/jungle gives +1 BTH when being attacked. Additionally, you gain -1 to PSR checks in Jungle terrain.

Three separate lines.

In MHQ it renders as follows: Movement in woods or jungle costs 1 less MP.Using walk/cruise MP while in woods/jungle gives +1 BTH when being attacked.Additionally, you gain -1 to PSR checks in Jungle terrain.

One single line, note the lack of space between the period and the next sentence.

Steps to Reproduce

  1. Hover over an SPA (for example Forest Ranger) in MM.
  2. Hover over the same SPA in MHQ.

Operating System *

Linux

Java Version *

17

MekHQ Suite Version *

Free Text (type manually)

Custom MekHQ Version

https://github.com/MegaMek/mekhq/commit/7779b817d1b00ec50c9dd1912913caed20774cd2

Attach Files

No response

Final Checklist

IllianiCBT commented 2 days ago

Closing as resolved