##// END OF EJS Templates
Fix failing tests for escaped magics and undo changes to text.py....
Fernando Perez -
Show More
@@ -727,7 +727,7 b' class EscapedTransformer(object):'
727 "Translate lines escaped with: %"
727 "Translate lines escaped with: %"
728 tpl = '%sget_ipython().magic(%s)'
728 tpl = '%sget_ipython().magic(%s)'
729 cmd = make_quoted_expr(' '.join([line_info.fpart,
729 cmd = make_quoted_expr(' '.join([line_info.fpart,
730 line_info.rest])).strip()
730 line_info.rest]).strip())
731 return tpl % (line_info.lspace, cmd)
731 return tpl % (line_info.lspace, cmd)
732
732
733 @staticmethod
733 @staticmethod
@@ -295,9 +295,8 b' def make_quoted_expr(s):'
295 quote = "'''"
295 quote = "'''"
296 else:
296 else:
297 # give up, backslash-escaped string will do
297 # give up, backslash-escaped string will do
298 return '"%s"' % esc_quotes(s).strip()
298 return '"%s"' % esc_quotes(s)
299 txt = (s + tailpadding).strip()
299 res = raw + quote + s + tailpadding + quote + tail
300 res = raw + quote + txt + quote + tail
301 return res
300 return res
302
301
303
302
General Comments 0
You need to be logged in to leave comments. Login now