public override void WriteLine(string value) { // Todo: it seems that spacing is not correct if this code // is enabled on Linux/Mono. However, it works as it should on Windows/.Net. // This could be related to line-ending differences, but I haven't been able to // find the cause yet. // This ugly workaround should work until the real cause is found. if (Environment.OSVersion.Platform == PlatformID.Win32Windows || Environment.OSVersion.Platform == PlatformID.Win32NT || Environment.OSVersion.Platform == PlatformID.Win32S || Environment.OSVersion.Platform == PlatformID.WinCE) { for (int i = indent_level; i > 0; i--) base.Write(" "); } base.WriteLine(value); }
private void WriteWrapper(BindStreamWriter sw, Function f, EnumCollection enums) { if ((Settings.Compatibility & Settings.Legacy.NoDocumentation) == 0) { WriteDocumentation(sw, f); } WriteMethod(sw, f, enums); sw.WriteLine(); }