summaryrefslogtreecommitdiffstats
path: root/lib/redcloth3.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-18 12:00:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-18 12:00:54 +0000
commit2cc294aa27a2041fdc6b8f1a9d5ab9675dce601f (patch)
treed3ac206ec6902eda6a3bcb7165b7f63d1d0a3aac /lib/redcloth3.rb
parentee559c68208227d54b471c4df1264b85d3e88f36 (diff)
downloadredmine-2cc294aa27a2041fdc6b8f1a9d5ab9675dce601f.tar.gz
redmine-2cc294aa27a2041fdc6b8f1a9d5ab9675dce601f.zip
Fixed that textile nested lists are not properly closed in output (#10642).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9430 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redcloth3.rb')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index f6333b3fe..c91c61718 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -585,7 +585,7 @@ class RedCloth3 < String
last_line = line_id
end
if line_id - last_line > 1 or line_id == lines.length - 1
- depth.delete_if do |v|
+ while v = depth.pop
lines[last_line] << "</li>\n\t</#{ lT( v ) }l>"
end
end