fixed parser to force line margins when set to non-zero

Thanks to @SuJiKiNen for this hint.