PsychoPy Version
2024.2.1post4
What OS are your PsychoPy running on?
Windows 10
Bug Description
I discovered a problem with the code-component ('s (de)serializer).
Take a simple project with just a code-component and the following (xml project) content:
<Param val="kButtonRatingText1 = '☺'&#10;kButtonRatingText2 = '🙂'&#10;kButtonRatingText3 = '😐'&#10;kButtonRatingText4 = '🙁'&#10;kButtonRatingText5 = '☹'&#10;kText = '123'" valType="extendedCode" updates="constant" name="Before Experiment"/>
or:
kButtonRatingText1 = '☺'
kButtonRatingText2 = '🙂'
kButtonRatingText3 = '😐'
kButtonRatingText4 = '🙁'
kButtonRatingText5 = '☹'
kText = '123'
if you want.
Opening the code-block again the text gets truncated to:
<Param val="kButtonRatingText1 = '☺'&#10;kButtonRatingText2 = '🙂'&#10;kButtonRatingText3 = '😐'&#10;kButtonRatingText4 = '🙁'&#10;kButtonRatingText5 = '☹'&#10;kText = '1" valType="extendedCode" updates="constant" name="Before Experiment"/>

Expected Behaviour
No truncation.
Steps to Reproduce
...
Additional context
No response
PsychoPy Version
2024.2.1post4
What OS are your PsychoPy running on?
Windows 10
Bug Description
I discovered a problem with the code-component ('s (de)serializer).
Take a simple project with just a code-component and the following (xml project) content:
<Param val="kButtonRatingText1 = '☺'&#10;kButtonRatingText2 = '🙂'&#10;kButtonRatingText3 = '😐'&#10;kButtonRatingText4 = '🙁'&#10;kButtonRatingText5 = '☹'&#10;kText = '123'" valType="extendedCode" updates="constant" name="Before Experiment"/>or:
if you want.
Opening the code-block again the text gets truncated to:
<Param val="kButtonRatingText1 = '☺'&#10;kButtonRatingText2 = '🙂'&#10;kButtonRatingText3 = '😐'&#10;kButtonRatingText4 = '🙁'&#10;kButtonRatingText5 = '☹'&#10;kText = '1" valType="extendedCode" updates="constant" name="Before Experiment"/>Expected Behaviour
No truncation.
Steps to Reproduce
...
Additional context
No response