Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix encoding error while reading from UTF-8 file + add .gitignore + run linter #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

vdmitriyev
Copy link

List of changes

@vdmitriyev
Copy link
Author

vdmitriyev commented Oct 8, 2024

It looks like a lot of changes have been introduced. But it is basically log .gitignore and black linter modifications.
The only part that has been changed is:

import traceback

def next_file(file: str) -> None:

    global tex, tex_lines, tex_lines_clean, in_env, envs
    try:
        with open(file, mode="r", encoding="utf-8") as content_file:
            tex = content_file.read()
    except:
        print("Could not open '%s'" % sys.argv[1])
        print(f"Error: {traceback.format_exc()}")
        sys.exit(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant