OpenXcom
OpenXcom copied to clipboard
Incorrect text-wrapping behavior in UFOPaedia
I've just stumbled upon what I believe to be incorrect text-wrapping behavior in OpenXCom Extended 7.0.3
This is running on Win10-64.
ufopaedia:
- id: STR_GAUSS_TECH
type_id: 10
section: STR_UFO_COMPONENTS
listOrder: 12501
requires:
- STR_GAUSS_TECH
text: STR_GAUSS_TECH_UFOPEDIA
en-US:
STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as these previous effortsss - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."
Produces this screenshot:
Whereas:
en-US:
STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as these previous efforts - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."
Produces this - Note the missing hyphen after 'efforts'
And I can reproduce it with the stock OpenXCom font as well
STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as theseeeee previousssss bllehhh effortssssss - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."
Can be reproduced on any OXC/OXCE version, on any GUI with Text component. Hyphen (word separator) probably counts as zero length or something (just guessing).
I tested with a briefing text:
STR_UFO_GROUND_ASSAULT_BRIEFING: "Explore the touchdown site and, if possible, gain entryyyyyyy - to the Alien Sub. The mission will be successful when all enemy units have been eliminated or neutralized. Recovery of the Alien Sub, artifacts and Alien corpses can then be initiated. To abort the mission return X-Com aquanauts to the submarine and click on the 'Abort Mission' icon."