We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e4f1a3 commit 5f65acbCopy full SHA for 5f65acb
fixes/fix-subheadings.py
@@ -1,6 +1,15 @@
1
#!/usr/bin/python
2
# Vladimir Slavik, Red Hat, 2018
3
4
+# Replace [discrete]\n== subheading with .subheading, including some common variations of that format.
5
+# Usage: python fix-subheadings.py target-directory
6
+
7
+# Automatically recurses into subdirectories and changes all *.adoc files; for recursion rules see python os.path.walk docs
8
9
+# To change "[discrete] == headings" to ".headings" in all files in a target directory, go to the
10
+# directory with the script and use ./fix-subheadings.py target-directory-path (where you replace
11
+# target-directory-path with the path to the target directory)
12
13
from __future__ import print_function
14
15
from os.path import walk, isfile, join
0 commit comments