With specific tag, start the export with the children.
This prevents the specific tag from being included in the results in the first place, and has the knock-on effect that the descendants' lines won't all start with the parent tag's name.
This commit is contained in:
		
							parent
							
								
									fccd682eac
								
							
						
					
					
						commit
						881ce5e3ae
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -90,7 +90,7 @@ def get_tags_html(specific_tag_name=None): | ||||||
|         tags = common.P.get_root_tags() |         tags = common.P.get_root_tags() | ||||||
|         tag_count = common.P.get_tag_count() |         tag_count = common.P.get_tag_count() | ||||||
|     else: |     else: | ||||||
|         tags = [specific_tag] |         tags = specific_tag.get_children() | ||||||
|         tag_count = sum(1 for child in specific_tag.walk_children()) |         tag_count = sum(1 for child in specific_tag.walk_children()) | ||||||
| 
 | 
 | ||||||
|     tags = common.P.get_cached_tag_export( |     tags = common.P.get_cached_tag_export( | ||||||
|  |  | ||||||
|  | @ -159,7 +159,7 @@ h2, h3 | ||||||
|             <h2>{{tag_count}} Tags</h2> |             <h2>{{tag_count}} Tags</h2> | ||||||
|             {% endif %} |             {% endif %} | ||||||
|             <ul id="tag_list"> |             <ul id="tag_list"> | ||||||
|             {% for (qualified_name, tag) in tags if tag != specific_tag %} |             {% for (qualified_name, tag) in tags %} | ||||||
|                 <li> |                 <li> | ||||||
|                     {{tag_object.tag_object(tag, link="search_musts", innertext="(+)")}} |                     {{tag_object.tag_object(tag, link="search_musts", innertext="(+)")}} | ||||||
|                     {{tag_object.tag_object(tag, link="search_forbids", innertext="(x)")}} |                     {{tag_object.tag_object(tag, link="search_forbids", innertext="(x)")}} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue