Permalink
Browse files

fix failures in links in book sections

In french, some chapters have a single quote in their title. The
present generation of previous/next links between sections is also
using single quotes for attributes, which leads to improper html.

Just swap single and double quotes, so that attributes now use
double quotes and single quotes are now part of the url.
  • Loading branch information...
jnavila committed Jul 3, 2012
1 parent 53bade4 commit ede92ce28a6a71812a8353c52f722fba78d5f9e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/book.rake
View
@@ -60,7 +60,7 @@ def generate_pages(lang, chapter, content)
html += sec
- nav = "<div id='nav'><a href='[[nav-prev]]'>prev</a> | <a href='[[nav-next]]'>next</a></div>"
+ nav = '<div id="nav"><a href="[[nav-prev]]">prev</a> | <a href="[[nav-next]]">next</a></div>'
html += nav
data = {

0 comments on commit ede92ce

Please sign in to comment.