summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting/textile/redcloth3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/wiki_formatting/textile/redcloth3.rb')
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb
index d77a0664b..f0595f438 100644
--- a/lib/redmine/wiki_formatting/textile/redcloth3.rb
+++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb
@@ -498,7 +498,7 @@ class RedCloth3 < String
c.starts_with?('wiki-class-') ? c : "wiki-class-#{c}"
end.join(' ') if cls
- id = id.starts_with?('wiki-id-') ? id : "wiki-id-#{id}" if id
+ id = "wiki-id-#{id}" if id && !id.start_with?('wiki-id-')
atts = +''
atts << " style=\"#{style.join}\"" unless style.empty?