aboutsummaryrefslogtreecommitdiff
path: root/cite.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-25 19:21:41 +0000
committerroot <root@turin.home>2022-01-25 19:21:41 +0000
commitf99481ad484caa2bc34ec101c0baa8845f6dcb16 (patch)
tree1270d587ddfaba3912ebfa179dc74ae2bb6c935e /cite.py
parent4d26a0fa4bccbb322683670b8d56af1fc9a60e65 (diff)
Writing, read Graham in Sentinel
Diffstat (limited to 'cite.py')
-rw-r--r--cite.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cite.py b/cite.py
new file mode 100644
index 0000000..6b8110d
--- /dev/null
+++ b/cite.py
@@ -0,0 +1,8 @@
+import sys
+
+a = sys.stdin.read()
+for l in a.split('\n'):
+ l = l.replace("{", "\n.[\n")
+ l = l.replace("} ", "\n.]\n")
+ l = l.replace("}", "\n.]\n")
+ print(l)