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