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

MacOS Python3 error export.py unexpected character after line continuation character #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andywirv
Copy link

On MacOS with Python 3.11.6

chat.py discover

results in the error :

Traceback (most recent call last):
  File "/Users/andy/projects/cursor-chat-export/chat.py", line 7, in <module>
    from src.export import ChatExporter, MarkdownChatFormatter, MarkdownFileSaver
  File "/Users/andy/projects/cursor-chat-export/src/export.py", line 92
    user_text.append(f"[selections]  \n{"\n".join([s["text"] for s in bubble['selections']])}")
                                          ^
SyntaxError: unexpected character after line continuation character

This PR fixes the issue in the f-string with the use of backslash

@andywirv
Copy link
Author

Fixes #14

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