That wrap_if_needed call would sometimes cause empty newlines to appear under otherwise already well-wrapped blocks of text. The idea is that whenever a new character is about to be appended, the current line is checked for being too long with that character included, and the character is only actually appended after the wrapper makes sure that appending it won't overflow the line by inserting a newline. This means that wrap_if_needed is only ever called before pushing the current character to records, never after, as was the case here. |
||
---|---|---|
.. | ||
bson | ||
client | ||
common | ||
debug | ||
graphics | ||
gui | ||
json | ||
lua | ||
powdertoyjava | ||
resampler | ||
simulation | ||
tasks | ||
Activity.h | ||
Config.h | ||
Controller.h | ||
Format.cpp | ||
Format.h | ||
Misc.cpp | ||
Misc.h | ||
Platform.cpp | ||
Platform.h | ||
PowderToy.h | ||
PowderToyRenderer.cpp | ||
PowderToySDL.cpp | ||
Probability.cpp | ||
Probability.h | ||
SDLCompat.cpp | ||
SDLCompat.h | ||
SDLMain.h | ||
SDLMain.m | ||
Update.cpp | ||
Update.h |