You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -92,22 +92,9 @@ namespace Mono.CSharp
|
||||
el.SetAttribute ("name", name);
|
||||
string normalized = mc.DocComment;
|
||||
el.InnerXml = normalized;
|
||||
// csc keeps lines as written in the sources
|
||||
// and inserts formatting indentation (which
|
||||
// is different from XmlTextWriter.Formatting
|
||||
// one), but when a start tag contains an
|
||||
// endline, it joins the next line. We don't
|
||||
// have to follow such a hacky behavior.
|
||||
string [] split =
|
||||
normalized.Split ('\n');
|
||||
int j = 0;
|
||||
for (int i = 0; i < split.Length; i++) {
|
||||
string s = split [i].TrimEnd ();
|
||||
if (s.Length > 0)
|
||||
split [j++] = s;
|
||||
}
|
||||
el.InnerXml = line_head + String.Join (
|
||||
line_head, split, 0, j);
|
||||
|
||||
string [] split = normalized.Split ('\n');
|
||||
el.InnerXml = line_head + String.Join (line_head, split);
|
||||
return el;
|
||||
} catch (Exception ex) {
|
||||
Report.Warning (1570, 1, mc.Location, "XML documentation comment on `{0}' is not well-formed XML markup ({1})",
|
||||
|
||||
Reference in New Issue
Block a user