Page 1 of 1

Need help fixing a problem in my menu...

Posted: 18 Nov 2023 11:07
by MBaas
I have a script which builds a popupmenu. After recent edits, I now have a problem with this menu and I don't understand why it is a problem.
First, here's the problem:
18-11-2023_10-45-15.png
The "-" in the line "APL (190U64)..." (line 36 in the attached file) is supposed to be a separator, like the ones around "BeyondCompare".
And as far as I am concerned, it IS the same! (I believe that line is correct, but somehow it does not have the desired effect)

To repro, please download xymenu.zip, unzip it, execute popupnested(readfile("C:\Temp\xymenu.txt"), 6:=<crlf>, 7:="|"); (adjust path as required) and select the "Open" menu.

Re: Need help fixing a problem in my menu...

Posted: 18 Nov 2023 11:28
by highend
2023-11-18_112729.png
No problems here...

Re: Need help fixing a problem in my menu...

Posted: 18 Nov 2023 11:56
by MBaas
No, that is exactly what I expected to see: the separator separates "Aj Archive Viewer" and the line "APL (190U64..."!

But why are you getting it that way and I am not?

Re: Need help fixing a problem in my menu...

Posted: 18 Nov 2023 12:10
by highend
Because I'm highend and you are... not^^ :masked:

You have mixed line endings (and I resaved the .txt with correct ones)...
2023-11-18_120841.png

Re: Need help fixing a problem in my menu...

Posted: 18 Nov 2023 12:30
by MBaas
Aaaah - that's what I don't like with VS Code: it normalizes line endings on load, so I didn't see it when I edited the file that my script had created :(
Thanks! :beer: