Revision 997f690f

b/lib/utils/text.py
345 345
      num_b = len(e1) - len(e1.rstrip("\\"))
346 346
      if num_b % 2 == 1 and slist:
347 347
        e2 = slist.pop(0)
348
        # here the backslashes remain (all), and will be reduced in
349
        # the next step
350
        rlist.append(e1 + sep + e2)
348
        # Merge the two elements and push the result back to the source list for
349
        # revisiting. If e2 ended with backslashes, further merging may need to
350
        # be done.
351
        slist.insert(0, e1 + sep + e2)
351 352
        continue
353
    # here the backslashes remain (all), and will be reduced in the next step
352 354
    rlist.append(e1)
353 355
  # finally, replace backslash-something with something
354 356
  rlist = [re.sub(r"\\(.)", r"\1", v) for v in rlist]

Also available in: Unified diff