On 11/12/25 08:44, Peter P. wrote:
Hi,

I just discovered that beginning a comment with a number and a full stop
as in "1." will make the fulls top disappear when exiting editing of
that comment. This is with Pd-0.56.1 and I wonder if this behavior has
always been around?

yes.

it has been reported as <https://github.com/pure-data/pure-data/issues/1291>

the problem is, that a comment (like msgboxes and objectboxes) are parsed into lists of atoms as an internal representation. so the string "1." gets interpreted as the number '1' (just like in in [float 1.0]). when displaying the comment, the atoms are rendered according to their value, and the number '1' is shown as "1".

this not only happens at the beginning of a comment, but anywhere. e.g. "the 1. example shows 1e3" will render as "the 1 example shows 1000".



the workaround is to make the word not look like a number.

for version numbers, use add an extra ".0" or similar (e.g. "1.0.0"), for enumerations use "#1" or "1)" instead of "1.".

--
please do not CC me for list-emails

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/UW4AV5ZF6RYSGDF43HGESRGQWY7CDCY5/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/

Reply via email to