Help for LibreLogo (locale) Functions -> RANGE says:
PRINT RANGE 10 ; print [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
PRINT RANGE 3 10 ; print [3, 4, 5, 6, 7, 8, 9]
PRINT RANGE 3 10 3 ; print [3, 6, 9]
In my version writing PRINT RANGE 10 outputs "range(0, 10", "range(3, 10" and "range(3, 10, 3" respectively.
To get the result as described in Help, I have to write PRINT LIST RANGE 10 etc.
Not tried in other versions of LibreOffice.
OS: Windows 7 and 8
I just get an error for both. How should I do it?
PRINT RANGE 10 ;
PRINT RANGE 10;
PRINT RANGE 10
and same for list range, but it doesn't seem to be a syntax error.
Win 7 Pro 64-bit, Version: 220.127.116.11 (x64)
Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
Locale: fi-FI (fi_FI)
Hello. I confirm this in LibreOffice 5.1 on Windows, brazilian portuguese.
I can confirm, the documentation is still incorrect...
On Help Page:
... it should state:
PRINT LIST RANGE 10 ; print [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
PRINT LIST RANGE 3 10 ; print [3, 4, 5, 6, 7, 8, 9]
PRINT LIST RANGE 3 10 3 ; print [3, 6, 9]
Version: 18.104.22.168 (x64)
Build ID: dd0751754f11728f69b42ee2af66670068624673
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win;
Locale: en-US (en_US); UI-Language: en-US
I submitted the patch in Gerrit, so this should be resolved once it is merged.
(In reply to Travis Stewart from comment #4)
> I submitted the patch in Gerrit, so this should be resolved once it is
1. start the first line of the commit with tdf#96446
2. break the message up, so the first line has max. 72 characters and the other lines have max. 80
3. remove the actual bug link, because tdf#96446 will be linkified in our services automatically
"please remember that the commit subject line should not be longer than 72 characters and the commit message lines, if any, should not be longer than 80 characters"
Thanks for correcting that. I removed the direct link and added the short form to the beginning of the commit message. I think it now complies with the restrictions.
Travis Stewart committed a patch related to this issue.
It has been pushed to "master":
tdf#96446 Fix Librelogo code example
Many thanks for reporting and fixing this! Likely it's worth to add the
FOR i IN RANGE 10 [ PRINT i ]
example in the future, showing an example without LIST.