Skip to content
Snippets Groups Projects
Commit f57df230 authored by Lubomir Prda's avatar Lubomir Prda
Browse files

Merge branch 'patch-1' into 'master'

Fixed bad capitalziation detection

See merge request !103
parents fbe33d2f ce617b8e
No related branches found
No related tags found
5 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!103Fixed bad capitalziation detection
Pipeline #
...@@ -26,7 +26,7 @@ def main(location): ...@@ -26,7 +26,7 @@ def main(location):
# Loop through the list of lines and titlecase # Loop through the list of lines and titlecase
# any line beginning with '#'. # any line beginning with '#'.
return_value = 0 return_value = 0
prev_line = lines.pop(0) prev_line = lines[0]
disabled = 0 disabled = 0
echo_filename = False echo_filename = False
if location.find("mkdocs.yml") != -1: if location.find("mkdocs.yml") != -1:
...@@ -37,7 +37,7 @@ def main(location): ...@@ -37,7 +37,7 @@ def main(location):
else: else:
if (line.startswith("``") or prev_line.startswith("pages:")) and disabled == 1: if (line.startswith("``") or prev_line.startswith("pages:")) and disabled == 1:
disabled = 0 disabled = 0
if line.startswith('#') and disabled == 0 and (location.find("mkdocs.yml") == -1): if line.startswith('#') and (disabled == 0) and (location.find("mkdocs.yml") == -1):
if line != titlecase(line[:(line.find("]"))], callback=abbreviations)+line[(line.find("]")):]: if line != titlecase(line[:(line.find("]"))], callback=abbreviations)+line[(line.find("]")):]:
if return_value == 0 and echo_filename == False: if return_value == 0 and echo_filename == False:
print("%s" % location) print("%s" % location)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment