mondschein85
Mitglied
File "extensions/wikipdf/src/wiki2latex.py", line 489
def encodeMath(x)
^
SyntaxError: invalid syntax
was meint Python damit?
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
File "extensions/wikipdf/src/wiki2latex.py", line 489
def encodeMath(x)
^
SyntaxError: invalid syntax
text = re.sub(r'(?s)$<$special$>$(.*?)$<$/special$>$', decodeMath, text)
$<$special$>$\%5Csqrt\%7B\%5Csum\_0\%5En\%5C\%2C\%20a\_n\%5E2\%7D$<$/special$>$
immer noch
^
dies ist ein test bla blubb
$<$special$>$\%5Csqrt\%7B\%5Csum\_0\%5En\%5C\%2C\%20a\_n\%5E2\%7D$<$/special$>$
immer noch
text = re.sub(r'(?s)\$<\$special\$>\$(.*?)\$<\$/special\$>\$', decodeMath, text)
return "<special>" + urllib.quote(x.group(1)) + "</special>"
return "<special>" + base64.encodestring(x.group(1)) + "</special>"
Traceback (most recent call last):
File "extensions/wikipdf/src/wiki2latex.py", line 637, in ?
tex_code += doWiki(wiki_code)
File "extensions/wikipdf/src/wiki2latex.py", line 581, in doWiki
text = re.sub(r'(?s)<math>(.*?)</math>', encodeMath, text)
File "/usr/lib/python2.3/sre.py", line 143, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "extensions/wikipdf/src/wiki2latex.py", line 490, in encodeMath
return "<special>" +base64.encodestring(x.group(1)) + "</special>"
NameError: global name 'base64' is not defined
import base64