P3D3::check for line break before adding entry to .hgignore

Issue #175 resolved
Maya Studios
created an issue

If the last line of the .hgignore file doesn't end with a line break (\n, \r\n, \r; due to manual editing), MacHg simply adds to the end of the file which results in a wrong entry. Instead MacHg should check whether the last line ends with a line break and add one, if one is missing.