--- a/hgext/mq.py Sun Mar 14 14:53:20 2010 +0100 +++ b/hgext/mq.py Sun Mar 14 19:09:55 2010 +0100 @@ -73,8 +73,7 @@ break def eatempty(lines): while lines: - l = lines[-1] - if re.match('\s*$', l): + if not lines[-1].strip(): del lines[-1] else: break