mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-01 05:18:44 -04:00
7378611832
- fixed "toplevel" regexp to include tokens of the form foo-bar-toplevel (i.e. multiple dashes) - some CSS adjustment so that all API headings are in gray.
9 lines
188 B
Python
9 lines
188 B
Python
import re
|
|
|
|
def striptags(text):
|
|
return re.compile(r'<[^>]*>').sub('', text)
|
|
|
|
def strip_toplevel_anchors(text):
|
|
return re.compile(r'\.html#[-\w]+-toplevel').sub('.html', text)
|
|
|