Skip to content

Commit

Permalink
Fixed escape characters format to handle warning due to misinterpreta…
Browse files Browse the repository at this point in the history
…tion of syntax
  • Loading branch information
shachar-a committed Dec 10, 2024
1 parent e5746e6 commit 44a7a14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/templates/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def get_info_from_file(source):
with open(source, 'r') as file:
# Search for patterns indicating the title and header
for line in file:
if "/// \page" in line:
title = line.split("/// \page", 1)[-1].strip()
elif "/// \headerfile" in line:
header = line.split("/// \headerfile", 1)[-1].strip()
if "/// \\page" in line:
title = line.split("/// \\page", 1)[-1].strip()
elif "/// \\headerfile" in line:
header = line.split("/// \\headerfile", 1)[-1].strip()

return title, header

Expand Down

0 comments on commit 44a7a14

Please sign in to comment.