I am writing a Mathematica package, and documenting its functions with
::usage messages. However, when I type
?FunctionName to view the usage message of a function, Mathematica inserts seemingly random line breaks into the message.
Here is an example (I replaced the letters in the message with
x's, because the actual text of the message doesn't matter):
test::usage = "xxxxxxxxxxxxxxxxxxxxxx[xxxxxxxx, xxxxxxxxx, xxxxx] xxx x xxxxxxxxxxxxxxx xxxx xxx xxx xxxxxxxxxxx xxxxx xxxxxxxxxxxx x xxxx xxxxxx xxxxxxx xx xxx xxxxxxxxx xxxxxxx xxxxxxxxxxx xxx xxx xxxxxx xxxxxxx."; ?test
The output in Mathematica is as follows:
For some reason, Mathematica chooses to add a line break in the middle of the sentence, which was not there before, instead of using the entire line width. As a result, the output looks ugly - especially since the first line is significantly shorter than the second line.
Is there any way to avoid this?