Skip to content

Commit

Permalink
adding edit links for all file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nelliemckesson committed Jun 15, 2023
1 parent dcbaf38 commit 551a4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/create_build_adoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def check_no_markdown(filename):
seen_header = False
with open(src_adoc) as in_fh:
for line in in_fh.readlines():
if line.startswith('== '):
if re.match('^=+ ', line) is not None:
if not seen_header:
seen_header = True
if github_edit is not None:
Expand Down
2 changes: 1 addition & 1 deletion scripts/create_build_adoc_include.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check_no_markdown(filename):
new_contents = ''
seen_header = False
for line in in_fh.readlines():
if line.startswith('== '):
if re.match('^=+ ', line) is not None:
if not seen_header:
seen_header = True
if github_edit is not None:
Expand Down

0 comments on commit 551a4fe

Please sign in to comment.