Show More
@@ -496,6 +496,12 class EmbeddedSphinxShell(object): | |||
|
496 | 496 | else: # still on a multiline |
|
497 | 497 | modified = u'%s %s' % (continuation, line) |
|
498 | 498 | output.append(modified) |
|
499 | ||
|
500 | # if the next line is indented, it should be part of multiline | |
|
501 | if len(content) > lineno + 1: | |
|
502 | nextline = content[lineno + 1] | |
|
503 | if len(nextline) - len(nextline.lstrip()) > 3: | |
|
504 | continue | |
|
499 | 505 | try: |
|
500 | 506 | mod = ast.parse( |
|
501 | 507 | '\n'.join(content[multiline_start:lineno+1])) |
General Comments 0
You need to be logged in to leave comments.
Login now