diff options
author | Jeff Arneson <jarneson@google.com> | 2014-09-15 09:53:15 -0700 |
---|---|---|
committer | Jeff Arneson <jarneson@google.com> | 2014-09-15 10:02:14 -0700 |
commit | ad46e7e7a1a7e3f375eae3d1ed1675bbf8ec463e (patch) | |
tree | bab82c263656b7027b6da0d0af5925e0163d703a /tools/droiddoc | |
parent | ce851e88d9b1a0d934f1a564b3a400782d12e0d3 (diff) | |
download | build-ad46e7e7a1a7e3f375eae3d1ed1675bbf8ec463e.zip build-ad46e7e7a1a7e3f375eae3d1ed1675bbf8ec463e.tar.gz build-ad46e7e7a1a7e3f375eae3d1ed1675bbf8ec463e.tar.bz2 |
Refactor show_annotations_list to remove HTML tags from method params
No need to pass in the HTML tags to start and end the list, since
we do the same thing everywhere, and it wasn't very complete anyways.
Change-Id: I504b78b699a03cc5ba7c6f0584173087aab2024b
Diffstat (limited to 'tools/droiddoc')
-rw-r--r-- | tools/droiddoc/templates-sdk/class.cs | 20 | ||||
-rw-r--r-- | tools/droiddoc/templates-sdk/classes.cs | 2 | ||||
-rw-r--r-- | tools/droiddoc/templates-sdk/macros_override.cs | 9 |
3 files changed, 16 insertions, 15 deletions
diff --git a/tools/droiddoc/templates-sdk/class.cs b/tools/droiddoc/templates-sdk/class.cs index deffa30..8ffe2f9 100644 --- a/tools/droiddoc/templates-sdk/class.cs +++ b/tools/droiddoc/templates-sdk/class.cs @@ -124,7 +124,7 @@ Summary: <?cs /if ?> <?cs set:colspan = colspan-1 ?> <?cs /each ?> -<?cs call:show_annotations_list(class, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> +<?cs call:show_annotations_list(class) ?> </div><!-- end header --> @@ -197,7 +197,7 @@ Summary: <?cs if:subcount(method.shortDescr) || subcount(method.deprecated) ?> <div class="jd-descrdiv"> <?cs call:short_descr(method) ?> - <?cs call:show_annotations_list(method, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(method) ?> </div> <?cs /if ?> </td></tr> @@ -217,7 +217,7 @@ Summary: <td class="jd-linkcol"><?cs call:cond_link(field.name, toroot, field.href, included) ?></td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(field) ?> - <?cs call:show_annotations_list(field, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(field) ?> </td> </tr> <?cs set:count = count + #1 ?> @@ -232,7 +232,7 @@ Summary: <td class="jd-linkcol"><?cs call:cond_link(field.name, toroot, field.href, included) ?></td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(field) ?> - <?cs call:show_annotations_list(field, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(field) ?> </td> </tr> <?cs set:count = count + #1 ?> @@ -255,7 +255,7 @@ Summary: </td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(attr) ?> - <?cs call:show_annotations_list(attr, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(attr) ?> </td> </tr> <?cs set:count = count + #1 ?> @@ -275,7 +275,7 @@ Summary: <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(cl) ?> - <?cs call:show_annotations_list(cl, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(cl) ?> </td> </tr> <?cs set:count = count + #1 ?> @@ -354,7 +354,7 @@ Summary: <td class="jd-linkcol"><?cs call:cond_link(field.name, toroot, field.href, cl.included) ?> </td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(field) ?> - <?cs call:show_annotations_list(field, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(field) ?> </td> </tr> <?cs set:count = count + #1 ?> @@ -524,7 +524,7 @@ From <?cs var:cl.kind ?> <?cs call:federated_refs(field) ?> </div> <div class="jd-details-descr"> - <?cs call:show_annotations_list(field, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(field) ?> <?cs call:description(field) ?> <?cs if:subcount(field.constantValue) ?> <div class="jd-tagdata"> @@ -567,7 +567,7 @@ From <?cs var:cl.kind ?> <?cs call:federated_refs(method) ?> </div> <div class="jd-details-descr"> - <?cs call:show_annotations_list(method, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(method) ?> <?cs call:description(method) ?> </div> </div> @@ -582,7 +582,7 @@ From <?cs var:cl.kind ?> <h4 class="jd-details-title"><?cs var:attr.name ?> </h4> <div class="jd-details-descr"> - <?cs call:show_annotations_list(attr, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(attr) ?> <?cs call:description(attr) ?> <div class="jd-tagdata"> diff --git a/tools/droiddoc/templates-sdk/classes.cs b/tools/droiddoc/templates-sdk/classes.cs index 84cca81..4eab438 100644 --- a/tools/droiddoc/templates-sdk/classes.cs +++ b/tools/droiddoc/templates-sdk/classes.cs @@ -33,7 +33,7 @@ <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(cl) ?> - <?cs call:show_annotations_list(cl, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(cl) ?> </td> </tr> <?cs set:count = count + #1 ?> diff --git a/tools/droiddoc/templates-sdk/macros_override.cs b/tools/droiddoc/templates-sdk/macros_override.cs index 6ff8f58..1525be5 100644 --- a/tools/droiddoc/templates-sdk/macros_override.cs +++ b/tools/droiddoc/templates-sdk/macros_override.cs @@ -2,17 +2,18 @@ <?cs # pre is an HTML string to start the list, post is an HTML string to close the list ?> <?cs # for example call:show_annotations_list(cl, "<td>Annotations: ", "</td>") ?> <?cs # if obj has nothing on obj.showAnnotations, nothing will be output ?> -<?cs def:show_annotations_list(obj, pre, post) ?> +<?cs def:show_annotations_list(obj) ?> <?cs each:anno = obj.showAnnotations ?> <?cs if:first(anno) ?> - <?cs var:pre ?> + <span class='annotation-message'> + Included in documention by the annotations: <?cs /if ?> @<?cs var:anno.type.label ?> <?cs if:last(anno) == 0 ?> , <?cs /if ?> <?cs if:last(anno)?> - <?cs var:post ?> + </span> <?cs /if ?> <?cs /each ?> <?cs /def ?> @@ -26,7 +27,7 @@ <td class="jd-linkcol"><?cs call:type_link(cl.type) ?></td> <td class="jd-descrcol" width="100%"> <?cs call:short_descr(cl) ?> - <?cs call:show_annotations_list(cl, "<span class='annotation-message'>Included in documentation by the annotations: ", "</span>") ?> + <?cs call:show_annotations_list(cl) ?> </td> </tr> <?cs set:count = count + #1 ?> |