mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	make_nav_sectref(): Create more minimal HTML, hanging the class attribute
off an existing anchor tag if available (I think it
                     always is, but am not completely sure).
			
			
This commit is contained in:
		
							parent
							
								
									752ba39a0b
								
							
						
					
					
						commit
						02c7082745
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -97,8 +97,13 @@ $CUSTOM_BUTTONS = ''; | ||||||
| sub make_nav_sectref { | sub make_nav_sectref { | ||||||
|     my($label,$title) = @_; |     my($label,$title) = @_; | ||||||
|     if ($title) { |     if ($title) { | ||||||
| 	return ("<b class='navlabel'>$label:</b> " |         if ($title =~ /\<[aA] /) { | ||||||
| 		. "<span class='sectref'>$title</span>\n"); |             $title =~ s/\<[aA] /<a class="sectref" /; | ||||||
|  |         } | ||||||
|  |         else { | ||||||
|  |             $title = "<span class=\"sectref\">$title</span>"; | ||||||
|  |         } | ||||||
|  |         return "<b class=\"navlabel\">$label:</b> $title\n"; | ||||||
|     } |     } | ||||||
|     return ''; |     return ''; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake