user guide: fix section anchors
This commit is contained in:
parent
66fac4f982
commit
947a65a75e
@ -27,7 +27,7 @@ class Generator
|
|||||||
@title = title.gsub(/[`]/, "")
|
@title = title.gsub(/[`]/, "")
|
||||||
@new_page = new_page
|
@new_page = new_page
|
||||||
@contents = ""
|
@contents = ""
|
||||||
@anchor = "s" + title.gsub(/[^a-zA-Z0-9]/, "_")
|
@anchor = "s" + ("#{number} #{title}").gsub(/[^a-zA-Z0-9]/, "_")
|
||||||
end
|
end
|
||||||
def append(contents)
|
def append(contents)
|
||||||
@contents += contents
|
@contents += contents
|
||||||
|
Loading…
x
Reference in New Issue
Block a user