Merge branch 'ui_improvement' into wps_i18n

This commit is contained in:
binary-husky
2023-07-01 22:13:38 +08:00
committed by GitHub
6 changed files with 28 additions and 7 deletions

View File

@ -203,6 +203,7 @@ def merge_tex_files_(project_foler, main_file, mode):
c = fx.read()
else:
# e.g., \input{srcs/07_appendix}
assert os.path.exists(fp+'.tex'), f'即找不到{fp},也找不到{fp}.texTex源文件缺失'
with open(fp+'.tex', 'r', encoding='utf-8', errors='replace') as fx:
c = fx.read()
c = merge_tex_files_(project_foler, c, mode)