UTF-8 Bug

Create a test case for utf-8 bug reported by Diego Restrepo. Seems to be related to WikiWord chunk handling.
Add some other tests, and fix a minor bug in vendor/plugins/maruku/lib/maruku/ext/math/latex_fix.rb.
This commit is contained in:
Jacques Distler 2007-10-26 00:48:43 -05:00
parent a92b593949
commit 8ce5016b41
4 changed files with 14 additions and 5 deletions

View file

@ -3,7 +3,7 @@ class String
def fix_latex
if #{html_math_engine} == 'itex2mml'
s = self.gsub("\\mathop{", "\\operatorname{")
s.gsub!(/\\begin{svg}.*?\\end{svg}/m, " ")
s.gsub!(/\\begin\{svg\}.*?\\end\{svg\}/m, " ")
s.gsub("\\space{", "\\itexspace{")
else
self