CleverRaven/Cataclysm-DDA — pull request #1828 by goron111 (2013-06-29 17:51:27+00:00)
Title: Item::info refactoring

This pull request started as try to fix some display errors showing the combat style information at character creation:

- Description text written on the border of the popup.
- Missing space on the new line.
- Hard to see the beginning of the style techniques

We had a function for word_wrapping and a function for word re-wrapping. The re-wrapping function was only used in to places item::info and in itypedef for bio description. But both did not know the real width of the display and so the re-wraped was pointless.

Now the wraping is done at the time of output by foldstring. This also allows the usage of paragraphs in descriptions which had been prevented by word_rewrap