Show More
@@ -693,7 +693,10 b' def embedded(f, modname, src):' | |||||
693 | else: |
|
693 | else: | |
694 | script.append(l[4:]) |
|
694 | script.append(l[4:]) | |
695 | continue |
|
695 | continue | |
696 | if inlinepython and l == b' \n': |
|
696 | # If we have an empty line or a command for sh, we end the | |
|
697 | # inline script. | |||
|
698 | if inlinepython and (l == b' \n' | |||
|
699 | or l.startswith(b' $ ')): | |||
697 | yield b''.join(script), (b"%s[%d]" % |
|
700 | yield b''.join(script), (b"%s[%d]" % | |
698 | (modname, inlinepython)), t, inlinepython |
|
701 | (modname, inlinepython)), t, inlinepython | |
699 | script = [] |
|
702 | script = [] |
General Comments 0
You need to be logged in to leave comments.
Login now