summaryrefslogtreecommitdiff
path: root/scripts/historic/formatparasect
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/historic/formatparasect')
-rw-r--r--scripts/historic/formatparasect16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/historic/formatparasect b/scripts/historic/formatparasect
new file mode 100644
index 000000000..16694297b
--- /dev/null
+++ b/scripts/historic/formatparasect
@@ -0,0 +1,16 @@
+s|
|\
+\
+|g
+# all <para> to left margin on next line
+s|^ *\(<para>.*\)|\
+\1|
+s|^ *\(</para>.*\)|\1|
+# sect's on next line, appropriate indent
+s|^ *\(</*sect1.*\)|\
+ \1|
+s|^ *\(</*sect2.*\)|\
+ \1|
+s|^ *\(</*sect3.*\)|\
+ \1|
+s|^ *\(</*sect4.*\)|\
+ \1|