Sometimes, Mathematica starts a new line of code, even though there is still enough space. For example, I have:
( metricMatterODEReducedCSSNωV[[3]] =
FullSimplify[
Denominator[metricMatterEqnReducedCSSSolVx] V'[x] -
Numerator[metricMatterEqnReducedCSSSolVx]]) /.
pp
where the Zoom has been set to 150%.
Lowering the Zoom makes it work of course. However, weirdly enough, removing the parentheses "()" removes this line break (I can still add quite a few more characters before it breaks (correctly this time) again). Alternatively, putting a ";" at the end also "pulls" the "pp" back to the upper line.
Why is this happening and how can I prevent this?
"Code"
style. If you setPageWidth->Infinity
for the"Input"
style, you do not get the line wrapping. You have to manually hit return where you want line breaks. You can get that functionality on a cell-by-cell basis with the menu Format > Word Wrapping > Don't Word Wrap. $\endgroup$ – Michael E2 Feb 4 '19 at 1:53