Skip to content

Commit

Permalink
Fix error for INPUT_OSCDFT.html, space in command title
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon committed Sep 27, 2024
1 parent 44e2aee commit 03a0f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docs2set.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_page_title(soup) -> Optional[str]:
soup = BeautifulSoup(open(file), features="lxml")

title = get_page_title(soup)
command = re.match(r"^(\S+): input description", title).group(1)
command = re.match(r"^(.+): input description$", title).group(1)
docset.insert_index(command, "Command", str(path))

for a in soup.select("td > blockquote blockquote > p > a"):
Expand Down

0 comments on commit 03a0f85

Please sign in to comment.