mirror of
https://github.com/ParticulateFlow/lammps-doc-utils.git
synced 2025-12-08 06:47:45 +00:00
Fix bug introduced in latest changes
This commit is contained in:
@ -169,7 +169,7 @@ class RSTFormatting(Formatting):
|
||||
|
||||
def header(self, content, level):
|
||||
header_content = content.strip()
|
||||
header_content = re.sub(r'[0-9]+(\.[0-9]*)*\s+', '', header_content)
|
||||
header_content = re.sub(r'[0-9]+\.([0-9]*\.?)*\s+', '', header_content)
|
||||
header_underline = RSTFormatting.RST_HEADER_TYPES[level-1] * len(header_content)
|
||||
return header_content + "\n" + header_underline + "\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user