mirror of https://github.com/CGAL/cgal
fix pylint errors
This commit is contained in:
parent
2c13f1fe6b
commit
ce55af8da3
|
|
@ -123,14 +123,14 @@ def gen_bib_entry(title, authors, bib, anchor):
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def gen_txt_entry(title, authors, bib, anchor,k):
|
def gen_txt_entry(title, authors, bib, anchor,k):
|
||||||
title_r=title.replace("Kernel","%Kernel").replace("Interval","%Interval").replace("Matrix","%Matrix").replace("Kinetic","%Kinetic").replace("CGAL","\cgal").replace("Range","%Range")
|
title_r=title.replace("Kernel","%Kernel").replace("Interval","%Interval").replace("Matrix","%Matrix").replace("Kinetic","%Kinetic").replace("CGAL",r'\cgal').replace("Range","%Range")
|
||||||
authors=authors.replace("CGAL","\cgal")
|
authors=authors.replace("CGAL",r'\cgal')
|
||||||
res="<tr valign=\"top\">\n\
|
res="<tr valign=\"top\">\n\
|
||||||
<td align=\"right\" class=\"bibtexnumber\">\n\
|
<td align=\"right\" class=\"bibtexnumber\">\n\
|
||||||
[<a name=\""+bib+"-${CGAL_RELEASE_YEAR_ID}\">"+str(k)+"</a>]\n\
|
[<a name=\""+bib+"-${CGAL_RELEASE_YEAR_ID}\">"+str(k)+"</a>]\n\
|
||||||
</td>\n\
|
</td>\n\
|
||||||
<td class=\"bibtexitem\">\n "+authors+".\n "+title_r+".\n\
|
<td class=\"bibtexitem\">\n "+authors+".\n "+title_r+".\n\
|
||||||
In <em>\cgal User and Reference Manual</em>. \cgal Editorial Board,\n\
|
In <em>\\cgal User and Reference Manual</em>. \\cgal Editorial Board,\n\
|
||||||
${CGAL_CREATED_VERSION_NUM} edition, ${CGAL_BUILD_YEAR4}.\n\
|
${CGAL_CREATED_VERSION_NUM} edition, ${CGAL_BUILD_YEAR4}.\n\
|
||||||
[ <a href=\"how_to_cite.html#"+bib+"-${CGAL_RELEASE_YEAR_ID}\">bib</a> | \n\
|
[ <a href=\"how_to_cite.html#"+bib+"-${CGAL_RELEASE_YEAR_ID}\">bib</a> | \n\
|
||||||
<a href=\"packages.html#"+anchor+"\">http</a> ]\n\
|
<a href=\"packages.html#"+anchor+"\">http</a> ]\n\
|
||||||
|
|
@ -199,7 +199,7 @@ for line in f:
|
||||||
for pkg_line in pkgdesc:
|
for pkg_line in pkgdesc:
|
||||||
match = pattern_title_and_anchor.match(pkg_line)
|
match = pattern_title_and_anchor.match(pkg_line)
|
||||||
if match:
|
if match:
|
||||||
title=match.group(1).replace("\,",",")
|
title=match.group(1).replace(r'\,',",")
|
||||||
anchor=match.group(2)
|
anchor=match.group(2)
|
||||||
continue
|
continue
|
||||||
match = pattern_author.match(pkg_line)
|
match = pattern_author.match(pkg_line)
|
||||||
|
|
@ -210,9 +210,9 @@ for line in f:
|
||||||
if match:
|
if match:
|
||||||
bib=match.group(1)
|
bib=match.group(1)
|
||||||
continue
|
continue
|
||||||
assert len(bib)>0, "Did you forget a \cgalPkgBib{} in %r?" % filename
|
assert len(bib)>0, "Did you forget a \\cgalPkgBib{} in %r?" % filename
|
||||||
assert len(authors)>0, "Did you forget a \cgalPkgAuthors{} in %r?" % filename
|
assert len(authors)>0, "Did you forget a \\cgalPkgAuthors{} in %r?" % filename
|
||||||
assert len(anchor)>0, "Did you forget the anchor in \cgalPkgDescriptionBegin{} in %r?" % filename
|
assert len(anchor)>0, "Did you forget the anchor in \\cgalPkgDescriptionBegin{} in %r?" % filename
|
||||||
result_txt+=gen_txt_entry(title, authors, bib, anchor,k)
|
result_txt+=gen_txt_entry(title, authors, bib, anchor,k)
|
||||||
# convert title and author to bibtex format
|
# convert title and author to bibtex format
|
||||||
title=protect_upper_case(title)
|
title=protect_upper_case(title)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue