Fix tfdoc parsing on newllines in outputs (#649)

* fix

* use the right (ugly) Python formatter

* boilerplate on new file

* and do the actual tfdoc run on the original outputs file
This commit is contained in:
Ludovico Magnocavallo
2022-05-05 14:43:38 +02:00
committed by GitHub
parent f2d663d19f
commit ff25809020
3 changed files with 15 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ OUT_RE = re.compile(r'''(?smx)
# output open
(?:^\s*output\s*"([^"]+)"\s*\{\s*$) |
# attribute
(?:^\s{2}([a-z]+)\s*=\s*"?(.*?)"?\s*$) |
(?:^\n?\s{2}([a-z]+)\s*=\s*"?(.*?)"?\s*$) |
# output close
(?:^\s?(\})\s*$) |
# comment