Commit 3cf1b435 authored by gijs's avatar gijs
Browse files

ID's everywhere, removing 'FR's

parent 51ee4b1e
......@@ -185,7 +185,8 @@ for (lang, url) in pages:
url = urljoin(baseurl, links[-1].attrs['href'])
if re.match('.*algolit.net$', urlparse(url).netloc) or re.match('.*algolit.constantvzw.org$', urlparse(url).netloc):
title = tagContent(links[-1])
chapter.append(makeLemma(title, url, soup))
chapter.append(
makeLemma(re.sub(r'\s*FR\s*', '', title), url, soup))
container.append(chapter)
......@@ -201,7 +202,8 @@ for (lang, url) in pages:
container.append(header)
elif child.name == 'h3':
sectiontitle = child.text
sectiontitle = tagContent(child)
hid = classSafeContent(sectiontitle)
asciii1 = soup.new_tag('pre')
asciii1['class'] = 'ascii box'
......@@ -211,7 +213,8 @@ for (lang, url) in pages:
asciiiname.append(sectiontitle)
headerwrapper = soup.new_tag('section')
headerwrapper['class'] = 'asciiheaderwrapper center h3'
headerwrapper.attrs['class'] = 'asciiheaderwrapper center h3'
headerwrapper.attrs['id'] = hid
headerwrapper.append(asciii1)
headerwrapper.append(asciiiname)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment