don't automatically add newline to last line - should be a configurable option, like geany?

This commit is contained in:
Michael Becker 2021-06-02 01:51:23 -04:00
parent 062a211706
commit fc9017712d
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -104,9 +104,11 @@ namespace UniversalEditor.DataFormats.Text.Plain
throw new ObjectModelNotSupportedException();
Writer writer = Accessor.Writer;
foreach (string line in ptom.Lines)
for (int i = 0; i < ptom.Lines.Count; i++)
{
writer.WriteLine(line);
writer.Write(ptom.Lines[i]);
if (i < ptom.Lines.Count)
writer.WriteLine();
}
}
}