Show More
@@ -9,18 +9,19 b' Mercurial-patchbomb/.* -> Mercurial-patc' | |||
|
9 | 9 | --===+[0-9]+=+$ -> --===*= (glob) |
|
10 | 10 | |
|
11 | 11 | $ cat > prune-blank-after-boundary.py <<EOF |
|
12 | > from __future__ import absolute_import, print_function | |
|
12 | 13 | > import sys |
|
13 | 14 | > skipblank = False |
|
14 | 15 | > trim = lambda x: x.strip(' \r\n') |
|
15 | 16 | > for l in sys.stdin: |
|
16 | 17 | > if trim(l).endswith('=--') or trim(l).endswith('=='): |
|
17 | 18 | > skipblank = True |
|
18 |
> print |
|
|
19 | > print(l, end='') | |
|
19 | 20 | > continue |
|
20 | 21 | > if not trim(l) and skipblank: |
|
21 | 22 | > continue |
|
22 | 23 | > skipblank = False |
|
23 |
> print |
|
|
24 | > print(l, end='') | |
|
24 | 25 | > EOF |
|
25 | 26 | $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py" |
|
26 | 27 | $ echo "[format]" >> $HGRCPATH |
General Comments 0
You need to be logged in to leave comments.
Login now