Permalink
Browse files

Fix cref format for generated notification documentation

  • Loading branch information...
1 parent aa1f63d commit d5d666808040de03d85bcfc510972b8f6deae4e3 @marek-safar marek-safar committed Sep 24, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 tools/docfixer/document-generated-code.cs
View
6 tools/docfixer/document-generated-code.cs
@@ -289,7 +289,8 @@ public static void DocumentNotificationNestedType (Type t, PropertyInfo pi, stri
var class_summary = class_doc.XPathSelectElement ("Type/Docs/summary");
var class_remarks = class_doc.XPathSelectElement ("Type/Docs/remarks");
- class_summary.Value = "Notification posted by the <see cref =\"T:" + t.FullName + "\"/> class.";
+ class_summary.RemoveAll ();
+ class_summary.Add (XElement.Parse ("<para>Notification posted by the <see cref =\"T:" + t.FullName + "\"/> class.</para>"));
class_remarks.RemoveAll ();
class_remarks.Add (XElement.Parse ("<para>This is a static class which contains various helper methods that allow developers to observe events posted " +
"in the iOS notification hub (<see cref=\"T:MonoTouch.Foundation.NSNotificationCenter\"/>).</para>"));
@@ -317,7 +318,8 @@ public static void DocumentNotificationNestedType (Type t, PropertyInfo pi, stri
Console.WriteLine ("Looking for {0}, and this is the class\n{1}", notification.Item1, class_doc);
handler.Value = "Method to invoke when the notification is posted.";
summary.Value = "Registers a method to be notified when the " + notification.Item2 + " notification is posted.";
- returns.Value = "The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref=\"M:MonoTouch.Foundation.NSNotification.RemoveObserver\"/>";
+ returns.RemoveAll ();
+ returns.Add (XElement.Parse ("<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref=\"M:MonoTouch.Foundation.NSNotification.RemoveObserver\"/></para>"));
remarks.RemoveAll ();
remarks.Add (XElement.Parse ("<para>The following example shows how you can use this method in your code</para>"));

0 comments on commit d5d6668

Please sign in to comment.