diff --git a/app/views/wiki/list.rhtml b/app/views/wiki/list.rhtml index fb4be80d..4f594fc3 100644 --- a/app/views/wiki/list.rhtml +++ b/app/views/wiki/list.rhtml @@ -19,12 +19,14 @@ <%- end -%> <%= sortable_element('sortable_pages') %>

Export selected pages (drag to re-order them) to a LaTeX file. diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 8a1b1d0f..f94a11a0 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -1345,6 +1345,27 @@ Page2 contents $\mathbb{01234}$. !, r.body end + def test_tex_list + @wiki.write_page('wiki1', 'Page2', + "Page2 contents $\\mathbb{01234}$.\n", + Time.now, Author.new('AnotherAuthor', '127.0.0.2'), x_test_renderer) + r = process('tex_list', 'web' => 'wiki1', 'Page2' => 'tex', 'BogusPage'=> 'tex', 'HomePage' => 'tex') + assert_response(:success) + assert_equal @tex_header1 + "\\usepackage{mathbbol}\n" + @tex_header2 + %q!\section*{Page2} + +Page2 contents $\mathbb{01234}$. + +\section*{HomePage} + +HisWay would be MyWay $\sin(x) \includegraphics[width=3em]{foo}$ in kinda ThatWay in HisWay though MyWay $\backslash$OverThere --{} see SmartEngine in that SmartEngineGUI + + + + +\end{document} +!, r.body + end + def test_web_list another_wiki = @wiki.create_web('Another Wiki', 'another_wiki')