remove 'v' prefix in front of version when formatting LaTeX3 files

This commit is contained in:
Maximilian Keßler 2022-01-12 21:02:19 +01:00
parent d1806d970f
commit 4a0e095899

View file

@ -10,7 +10,8 @@ from PyTeX.base import Attributes, Args
class TexFormatter: class TexFormatter:
def __init__(self, name: str, author: str, header: Optional[List[str]], file_extension: str, def __init__(self, name: str, author: str, header: Optional[List[str]], file_extension: str,
tex_version: str, version: str, latex_name: str): tex_version: str, version: str, latex_name: str):
self.version = version
self.version = version[1:] if version.startswith('v') else version
self.header = header self.header = header
self.name_raw = name self.name_raw = name
self.author = author self.author = author