Menu

#67 Custom tags are ignored

Bug
open
nobody
PDFDoclet (42)
5
2006-05-04
2006-05-04
No

In PDFDoclet 1.0.1, custom tags are only processed for the class
description---they aren't processed for field or method descriptions! (See
also the mailing list query <http://sourceforge.net/forum/forum.php?
thread_id=1322280&forum_id=185314>).

There is a bug in TagLists.java's clearTagsFromList(String[]) where there is
this series of comparisons:

(names[i].equals(DOC_TAG_EXCEPTION) == false
&& names[i].equals(DOC_TAG_RETURN) == false
...
&& names[i].equals(DOC_TAG_PARAM) )

The fault is that the last comparison should be

names[i].equals(DOC_TAG_PARAM) == false

Thanks.

Discussion

  • James Devenish

    James Devenish - 2006-08-07

    Logged In: YES
    user_id=38479

    My original patch was incomplete, because there is a larger problem with the
    original code. Attached is a cumulative patch for TagLists.java, which strips the
    leading "@" from the tag name before performing the comparisons.

     
  • James Devenish

    James Devenish - 2006-08-07

    Render custom tags in tag lists.

     

Log in to post a comment.