diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 18:55:57 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 21:04:33 -0400 |
commit | cca28c79201aea3703c46289e22d5ff75faf10d6 (patch) | |
tree | 20687eb2e21a09aec56af0438f3c78c865ff3f3c /lib | |
parent | 0cc75363415a4f60100a230d78945465f9cefdcc (diff) | |
download | gitlab-ce-cca28c79201aea3703c46289e22d5ff75faf10d6.tar.gz |
Update Markdown help docs for latest changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown/table_of_contents_filter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown/table_of_contents_filter.rb b/lib/gitlab/markdown/table_of_contents_filter.rb index c97612dafb8..38887c9778c 100644 --- a/lib/gitlab/markdown/table_of_contents_filter.rb +++ b/lib/gitlab/markdown/table_of_contents_filter.rb @@ -31,7 +31,7 @@ module Gitlab id = text.downcase id.gsub!(PUNCTUATION_REGEXP, '') # remove punctuation id.gsub!(' ', '-') # replace spaces with dash - id.squeeze!(' -') # replace multiple spaces or dashes with one + id.squeeze!('-') # replace multiple dashes with one uniq = (headers[id] > 0) ? "-#{headers[id]}" : '' headers[id] += 1 |