- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 05 Dec 2010 09:40:06 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec/tools In directory hutz:/tmp/cvs-serv11345/tools Modified Files: spec-splitter.py Log Message: use CSS to add arrows in TOC links b=10660 Index: spec-splitter.py =================================================================== RCS file: /sources/public/html5/spec/tools/spec-splitter.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- spec-splitter.py 14 May 2010 10:09:27 -0000 1.7 +++ spec-splitter.py 5 Dec 2010 09:40:04 -0000 1.8 @@ -239,6 +239,8 @@ if name == index_page: continue # don't add nav links to the TOC page head = doc.find('head') + style = etree.XML('<link href="style.css" rel="stylesheet"/>') + head.append(style) nav = etree.Element('div') # HTML 4 compatibility nav.text = '\n ' @@ -247,7 +249,7 @@ if i > 1: href = get_page_filename(pages[i-1][0]) title = pages[i-1][2] - a = etree.XML(u'<a href="%s">\u2190 %s</a>' % (href, title)) + a = etree.XML(u'<a href="%s" class="prev">%s</a>' % (href, title)) a.tail = u' \u2013\n ' nav.append(a) link = etree.XML('<link href="%s" title="%s" rel="prev"/>' % (href, title)) @@ -264,7 +266,7 @@ if i != len(pages)-1: href = get_page_filename(pages[i+1][0]) title = pages[i+1][2] - a = etree.XML(u'<a href="%s">%s \u2192</a>' % (href, title)) + a = etree.XML(u'<a href="%s" class="next">%s</a>' % (href, title)) a.tail = '\n ' nav.append(a) a.getprevious().tail = u' \u2013\n '
Received on Sunday, 5 December 2010 09:40:08 UTC