[mono-api-tools] Split properly for cross-platform (#9918)
commit6d6c046d36e25c539bda76e8d639b7fe9735b560
authorMatthew Leibowitz <mattleibow@live.com>
Tue, 4 Sep 2018 14:14:14 +0000 (4 16:14 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 4 Sep 2018 14:14:14 +0000 (4 16:14 +0200)
tree38e1a8a84bf94666a00fe46738e0b4433243a8f6
parentf463581b2ce6c91476fd668efe73b577fa98a31b
[mono-api-tools] Split properly for cross-platform (#9918)

When creating a diff on windows, the lines are split on the `\n` so the `\r\n` results in multiple lines:

**START SNIP**
Obsoleted methods:

```diff
 [Obsolete ("Use AddRoundRect instead.")]

 public void AddRoundedRect (SKRect rect, float rx, float ry, SKPathDirection dir);
```
**END SNIP**

This PR makes sure to use the platform line endings everywhere. When adding line endings, use the same that `StringBuilder` uses - platform endings. This makes it easy to split - just use the platform as that is what everyone is using.
mcs/tools/mono-api-html/ApiChange.cs
mcs/tools/mono-api-html/FieldComparer.cs
mcs/tools/mono-api-html/HtmlFormatter.cs
mcs/tools/mono-api-html/MarkdownFormatter.cs