Fix Maruku Ruby 1.9 Bug
In Rbuy 1.8, ?c returns an integer. In Ruby 1.9, it returns a 1-character string. This was causing one of our LaTeX conversion functional tests to fail. Fixed.
This commit is contained in:
parent
34b63a8375
commit
063a8ca5a7
2 changed files with 22 additions and 5 deletions
|
@ -1263,6 +1263,23 @@ HisWay would be MyWay $\sin(x) \includegraphics[width=3em]{foo}$ in kinda ThatWa
|
|||
|
||||
|
||||
|
||||
\end{document}
|
||||
!, r.body
|
||||
end
|
||||
|
||||
def test_tex_character_conversions
|
||||
@wiki.write_page('wiki1', 'Page2',
|
||||
"Page2 contents { & ^ <.\n",
|
||||
Time.now, Author.new('AnotherAuthor', '127.0.0.2'), x_test_renderer)
|
||||
r = process('tex', 'web' => 'wiki1', 'id' => 'Page2')
|
||||
assert_response(:success)
|
||||
|
||||
assert_equal @tex_header1 + @tex_header2 + %q!\section*{Page2}
|
||||
|
||||
Page2 contents \{ \& {\tt \symbol{94}} {\tt \symbol{60}}.
|
||||
|
||||
|
||||
|
||||
\end{document}
|
||||
!, r.body
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue