aboutsummaryrefslogtreecommitdiff
path: root/stage-3.awk
diff options
context:
space:
mode:
Diffstat (limited to 'stage-3.awk')
-rw-r--r--stage-3.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/stage-3.awk b/stage-3.awk
new file mode 100644
index 0000000..2666bf3
--- /dev/null
+++ b/stage-3.awk
@@ -0,0 +1,13 @@
+# Mark chapters
+/^ *([IVX][IVX]*)\.* *$/ {
+ gsub(/ */, "")
+ gsub(/\./, "")
+ print ""
+ print "# Kapittel " $0
+ print ""
+ next
+}
+
+{
+ print
+}