add missing / for xhtml

This commit is contained in:
Sébastien Loriot 2013-08-08 12:07:33 +02:00
parent b57543fe75
commit 9d51a8f29f
1 changed files with 2 additions and 2 deletions

View File

@ -309,10 +309,10 @@ removes some unneeded files, and performs minor repair on some glitches.''')
#add a canonical link to all pages
all_pages=glob.glob('*/*.html')
for f in all_pages:
canonical_link="<link rel=\"canonical\" href=\"http://doc.cgal.org/latest/"+f+"\">\n"
canonical_link="<link rel=\"canonical\" href=\"http://doc.cgal.org/latest/"+f+"\"/>\n"
re_replace_first_in_file(r'<head>', r'<head>\n'+canonical_link, f)
## special case for how_to_cite.html
canonical_link="<link rel=\"canonical\" href=\"http://doc.cgal.org/latest/Manual/how_to_cite.html\">\n"
canonical_link="<link rel=\"canonical\" href=\"http://doc.cgal.org/latest/Manual/how_to_cite.html\"/>\n"
re_replace_first_in_file(r'<body>', r'<head>\n'+canonical_link+"</head>\n<body>", "Manual/how_to_cite.html")