Fixed: partial toc when text contains pre tags (#7172).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-12-29 18:21:22 +00:00
parent 0025a66200
commit af7006dff6
2 changed files with 26 additions and 10 deletions

View File

@@ -428,7 +428,11 @@ Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
h2. Subtitle with [[Wiki|another Wiki]] link
h2. Subtitle with %{color:red}red text%
<pre>
some code
</pre>
h3. Subtitle with *some* _modifiers_
h1. Another title
@@ -464,7 +468,7 @@ RAW
'</ul>'
@project = Project.find(1)
assert textilizable(raw).gsub("\n", "").include?(expected)
assert textilizable(raw).gsub("\n", "").include?(expected), textilizable(raw)
end
def test_table_of_content_should_contain_included_page_headings