summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-06 18:55:57 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-06 21:04:33 -0400
commitcca28c79201aea3703c46289e22d5ff75faf10d6 (patch)
tree20687eb2e21a09aec56af0438f3c78c865ff3f3c /lib
parent0cc75363415a4f60100a230d78945465f9cefdcc (diff)
downloadgitlab-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.rb2
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