##// END OF EJS Templates
Joergens patches for Latex char escaping and eggsetup.py develop
vivainio -
Show More
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Magic functions for InteractiveShell.
2 """Magic functions for InteractiveShell.
3
3
4 $Id: Magic.py 1181 2006-03-01 11:27:24Z vivainio $"""
4 $Id: Magic.py 1188 2006-03-02 18:24:00Z vivainio $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -251,7 +251,7 b' license. To use profiling, please install"python2.3-profiler" from non-free.""")'
251 """Format a string for latex inclusion."""
251 """Format a string for latex inclusion."""
252
252
253 # Characters that need to be escaped for latex:
253 # Characters that need to be escaped for latex:
254 escape_re = re.compile(r'(%|_|\$|#)',re.MULTILINE)
254 escape_re = re.compile(r'(%|_|\$|#|&)',re.MULTILINE)
255 # Magic command names as headers:
255 # Magic command names as headers:
256 cmd_name_re = re.compile(r'^(%s.*?):' % self.shell.ESC_MAGIC,
256 cmd_name_re = re.compile(r'^(%s.*?):' % self.shell.ESC_MAGIC,
257 re.MULTILINE)
257 re.MULTILINE)
@@ -16,4 +16,5 b' print sys.argv'
16 execfile('setup.py')
16 execfile('setup.py')
17
17
18 # clean up the junk left around by setuptools
18 # clean up the junk left around by setuptools
19 os.system('rm -rf ipython.egg-info build')
19 if "develop" not in sys.argv:
20 os.system('rm -rf ipython.egg-info build')
General Comments 0
You need to be logged in to leave comments. Login now