# that h.target_count is only
# defined when h.target is.
- IF h.target AND h.target_count AND result.list_authorities.grep('^' _ h.target _ '$').size == 0 AND h.main_entry;
+ IF h.target AND h.target_count AND result.list_authorities.grep('^' _ h.target _ '$').size == 0;
id = h.target; NEXT IF seenit.$id; seenit.$id = 1;
IF !auth_headings_ul_added;
# only add a <ul> if we have at least one <li> (WCAG 2.0)
# that h.target_count is only
# defined when h.target is.
- IF h.target AND h.target_count AND result.list_sees.grep('^' _ h.target _ '$').size == 0 AND h.main_entry AND h.target != a.id;
+ IF h.target AND h.target_count AND result.list_sees.grep('^' _ h.target _ '$').size == 0 AND !h.main_entry;
id = h.target; NEXT IF seenit.$id; seenit.$id = 1;
IF !auth_headings_ul_added;
# only add a <ul> if we have at least one <li> (WCAG 2.0)