Closed jshank closed 2 years ago
found the problem, in the "Lib:Character" token, the "Change Pin Form" macro is missing an encode in the note [h:description=encode(description)]
, adding it in line 11 after the getStrProp variables fixed it
We get to keep the + now but lose all the new line characters (replaced with %0A
)
@rtakehara Can you reopen or should I create a new issue?
I think I fixed Lib:Character - Change Pin Form so that it doesn't wipe out the + and handles %0A correctly
Add this on/after line 11:
[h:description=encode(description)]
Replace line 40 with this
[h, if(decode(name)=="new"), CODE:{
[description=""]
};{
[description=decode(description)]
[description=replace(description, "%0A", decode("%0A"))]
}]
<textarea name="value" cols="60" rows="30">[r:description]</textarea>
Previously was
<textarea name="value" cols="60" rows="30">[r:if(decode(name)=="new","",decode(description))]</textarea>
Uhm... semi-colon has the same issue ... At least after adding this fix.
I am confusion ... opened the pin again to get some screen shots, and now it works with semi-colon ?!
I found the same, I had to save the corrected data once to the GMNotes section and then it loaded correctly. Previously, the first load would "corrupt" the data and then you saved it as corrupted (missing : and/or +). Once the macro is updated, it won't corrupt the data the first time. My biggest lesson is that I keep all of the source for the pins in plain text .md files and copy the data into the pin. That way I always have a clean source.
Describe the bug After saving edits to the GM Notes of a pin, any use of the
+
character is lost.To Reproduce Steps to reproduce the behavior:
1d20+6
is now1d20 6
Expected behavior
+
is maintained as part of the textScreenshots N/A
Desktop (please complete the following information):