Re: Comments starting with "1." will make the "." disappear?
IOhannes m zmoelnig via Pd-list <[email protected]>
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Message-ID | <[email protected]> |
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 --- [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/
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEdAXnRVdICXNIABVttlAZxH96NvgFAmkUPG4FAwAAAAAACgkQtlAZxH96NvgE Dg//WNPek5K0864lyChlHcZqQlzUSPX980j46c71twQveX4PStfGIfIIiSYviZfN46IfEfsdFJAS RddoeO7mGg7MfXD1QG0bLPToUkz9iU4fzfJn+ALn6IdBdGI8oWmj30r5U5/gN9KOBlbdZbXnfoBe c7vKhlC5x9RZqDmh2FefR4cq0J5pYU9qsaxaZLijRaDvricJ74nYV7NbyDu/iYj04/Ao0pqkq0Zk uLmc1QHIMD0D0h8OhdW/hQBnYn2KbVMZFFDYrPk+00K8CozvNDR27VsEdju4Yc0j07g6pYRchuV1 d69M3QL2LLoz5GQDJ7XkZWGcqwompBUgRc4p6TSCHDK9nYGXgI8TO2ozLOsAF0tdRnIGaobLx1Ct dvgVIsFHeq0pDLGJY12KHN1jDgpMJOovv0Uibrr45sSM2vduPjlnS6dh1kLIWaA4nUT0fnpcCWGp GGWDAELUdB0ywvoT/kGLMV6LucfOsO+eqflFze6PTHQWlSY0RiaZd6khqotHX1d2Ui59yfGlN6Tc O+JR9v6MT6htN+OgHF5qmhNtY8/R7FQ/2vicklGloG117ezQ1DIuDLORmsoI+59+I98++1dQab6A 6mMBNUqQDjjQK6wpT6Zv+FklhkiMivYg4vvNi9ORngzvM8vbKkQaR3PurDzPcjRYJ2Vyuz1r5yXG 8Kc= =FX7p -----END PGP SIGNATURE-----