better default for docstrip guards
This commit is contained in:
parent
ed004aaf33
commit
92be6e446c
1 changed files with 4 additions and 1 deletions
|
@ -298,6 +298,9 @@ class FormattingConfig(Config):
|
|||
@property
|
||||
def docstrip_guards(self) -> List[str]:
|
||||
if self._docstrip_guards is None:
|
||||
if self.tex_type in [TeXType.TeXDocstrip]:
|
||||
return [self.tex_type.value]
|
||||
else:
|
||||
return []
|
||||
else:
|
||||
return self._docstrip_guards
|
||||
|
|
Loading…
Reference in a new issue