Comment 2 for bug 1548882

Revision history for this message
Kilian Rosbach (kilian-rosbach) wrote :

Hi Olivier,

thanks a lot for the super-fast reply!

I've looked at extended_cmd.py, and while I agree your fix will work for the particular case I mentioned, I think there might be an easy way to have a more general solution that will also work if the second line does not start with a space:

In lines 523-525, the first part of the continued line is added to the current line:
        if self.save_line:
            line = self.save_line + line
            self.save_line = ''
But just before that, in line 520, any spaces at the beginning of the line are removed:
        line = line.lstrip()

I would suggest to simply reverse the order of these two blocks of code, then it should work in all cases I believe.

Thanks again and cheers,
Kilian