annotate bin/dfi @ 539:05785a85d603

Fix json syntax highlighter config.
author edogawaconan <me@myconan.net>
date Mon, 05 Jan 2015 23:00:11 +0900
parents 006c273399fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
277
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env python
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 import os
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 import sys
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 rows = sys.stdin.readlines()
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 for row in rows:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 if row.find(' ', 1, 49) == -1:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 row = row[0:48] + ' ' + row[48:]
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 data = row.split(None, 5)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 print '|'.join(data)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13