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

Using edsl for code generation - error (and add documentation) #425

Open
johnjosephhorton opened this issue May 4, 2024 · 3 comments
Open
Assignees

Comments

@johnjosephhorton
Copy link
Contributor

Screenshot 2024-05-04 at 10 12 04 AM
@rbyh
Copy link
Contributor

rbyh commented May 13, 2024

This does not work when the question text has """text across lines in triple-quotes"""

Code to reproduce issue:

from edsl.questions import QuestionFreeText
from edsl import Survey

q = QuestionFreeText(
    question_name = "weather",
    question_text = """Draft a paragraph
    about the weather."""
)

survey = Survey([q])

generated_code = survey.code("example.py")
image

@rbyh
Copy link
Contributor

rbyh commented May 14, 2024

@zer0dss I think you worked on a similar issue where """ """ tripe quotes created a problem?

@rbyh rbyh changed the title Using edsl for code generation - add documentation Using edsl for code generation - error (and add documentation) May 14, 2024
@zer0dss
Copy link
Collaborator

zer0dss commented May 14, 2024

@rbyh Yes, I think we had a similar issue on xdsl. I have to check it.

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

No branches or pull requests

3 participants