Changeset 416

Show
Ignore:
Timestamp:
12/19/07 12:49:24 (5 years ago)
Author:
mgalloy
Message:

Fixed up libdata template for the case of no visible pro files or no visible routines in a pro file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/idldoc/src/templates/libdata.tt

    r412 r416  
    1010libdataItem = 0; 
    1111 
     12[% IF n_visible_pro_files %] 
    1213[% FOREACH f IN visible_pro_files %][% SCOPE f %] 
    1314libdata[libdataItem++] = new Array("[% index_url %]", "[% index_name %]", "[% index_type %]", "[% file_basename(basename) %]", "[% plain_author %]", "", "[% plain_comments %]", "", "[% strjoin(categories, ' ') %]", ""); 
     15  [% IF n_visible_routines gt 0 %] 
    1416  [% FOREACH r IN visible_routines %][% SCOPE r %] 
    1517  libdata[libdataItem++] = new Array("[% index_url %]", "[% index_name %]", "[% index_type %]", "[% file_basename(basename) %]", "[% plain_author %]", "[% name %]", "[% plain_comments %]", "", "[% strjoin(categories, ' ') %]", ""); 
    1618  [% END %][% END %] 
     19  [% END %] 
    1720[% END %][% END %] 
     21[% END %]