- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 27 Apr 2011 11:15:56 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view In directory hutz:/tmp/cvs-serv15813 Modified Files: patch.anolis Log Message: updated Index: patch.anolis =================================================================== RCS file: /sources/public/html5/spec-author-view/patch.anolis,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- patch.anolis 22 Apr 2011 02:42:06 -0000 1.13 +++ patch.anolis 27 Apr 2011 11:15:54 -0000 1.14 @@ -1,6 +1,6 @@ diff -r 94a30434aef9 anolis --- a/anolis Sat Sep 04 17:58:12 2010 -0500 -+++ b/anolis Fri Apr 22 10:53:04 2011 +0900 ++++ b/anolis Wed Apr 27 20:13:03 2011 +0900 @@ -70,10 +70,10 @@ def getOptParser(): @@ -16,7 +16,7 @@ diff -r 94a30434aef9 anolislib/processes/filter.py --- a/anolislib/processes/filter.py Sat Sep 04 17:58:12 2010 -0500 -+++ b/anolislib/processes/filter.py Fri Apr 22 10:53:04 2011 +0900 ++++ b/anolislib/processes/filter.py Wed Apr 27 20:13:03 2011 +0900 @@ -5,23 +5,4 @@ return selector = cssselect.CSSSelector(kwargs["filter"]) @@ -44,8 +44,8 @@ + element.drop_tree() diff -r 94a30434aef9 anolislib/processes/terms.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 -+++ b/anolislib/processes/terms.py Fri Apr 22 10:53:04 2011 +0900 -@@ -0,0 +1,379 @@ ++++ b/anolislib/processes/terms.py Wed Apr 27 20:13:03 2011 +0900 +@@ -0,0 +1,382 @@ +# coding=UTF-8 +# Copyright (c) 2010 Michael(tm) Smith +# @@ -215,12 +215,15 @@ + indexEntry.append(dfnContext) + # we need a first letter so that we can build navigational + # links for the alphabetic nav bars injected into the index -+ termFirstLetter = term.text_content()[0].upper() -+ if termFirstLetter != prevTermFirstLetter and termFirstLetter.isalpha(): -+ firstLetters.append(termFirstLetter) -+ indexNavHelpers[termFirstLetter] = etree.Element(u"div",{u"class": "index-nav", u"id": "index-terms_"+termFirstLetter}) -+ prevTermFirstLetter = termFirstLetter -+ self.terms.append(indexNavHelpers[termFirstLetter]) ++ if term.text_content() != "": ++ termFirstLetter = term.text_content()[0].upper() ++ if termFirstLetter != prevTermFirstLetter and termFirstLetter.isalpha(): ++ firstLetters.append(termFirstLetter) ++ indexNavHelpers[termFirstLetter] = etree.Element(u"div",{u"class": "index-nav", u"id": "index-terms_"+termFirstLetter}) ++ prevTermFirstLetter = termFirstLetter ++ self.terms.append(indexNavHelpers[termFirstLetter]) ++ else: ++ term.text = "(empty string)" + # ######################################################### + # make a list of all the instances of terms in the document + # that are hyperlinked references back to the <dfn> term @@ -427,7 +430,7 @@ + pass diff -r 94a30434aef9 anolislib/utils.py --- a/anolislib/utils.py Sat Sep 04 17:58:12 2010 -0500 -+++ b/anolislib/utils.py Fri Apr 22 10:53:04 2011 +0900 ++++ b/anolislib/utils.py Wed Apr 27 20:13:03 2011 +0900 @@ -104,7 +104,7 @@ i = 0
Received on Wednesday, 27 April 2011 11:16:03 UTC