Ensure lines are integers, not rationals during indention.

Backport of #872
Merge pull request #1137 from joshwlewis/mathn_indent

Ensure lines are integers, not rationals during indention.