add header formatting method
This commit is contained in:
parent
b9fd9f0e25
commit
0f912b6c2f
2 changed files with 8 additions and 0 deletions
3
PyTeX/format/constants.py
Normal file
3
PyTeX/format/constants.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
INFILE_CONFIG_BEGIN_CONFIG = 'config'
|
||||||
|
INFILE_CONFIG_END_CONFIG = 'endconfig'
|
||||||
|
PYTEX_CONFIG_FILE_EXTENSION = '.conf'
|
|
@ -115,3 +115,8 @@ class PyTeXFormatter(FormatterIF):
|
||||||
## TODO handle rest
|
## TODO handle rest
|
||||||
|
|
||||||
return self._header
|
return self._header
|
||||||
|
|
||||||
|
def format_header(self, **kwargs) -> None:
|
||||||
|
self._header = self.header.format(
|
||||||
|
**kwargs
|
||||||
|
) # TODO: add standard keywords here
|
||||||
|
|
Loading…
Reference in a new issue