Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 941b35e

Browse files
authored
Merge pull request #4700 from seaniepie/patch-54
[[Docs]] constant/return - Example and note format
2 parents cb9f291 + 0333a24 commit 941b35e

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

docs/dictionary/constant/return.lcdoc

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ put return after word 1 of theData
2323
Example:
2424
local thisChar, aLongTextString
2525
repeat for each char thisChar in aLongTextString
26-
if thisChar is return then
27-
exit repeat
28-
else
29-
-- do other stuff
30-
end if
26+
if thisChar is return then
27+
exit repeat
28+
else
29+
-- do other stuff
30+
end if
3131
end repeat
3232

3333
Description:
@@ -54,21 +54,20 @@ carriage return (<ASCII> 13), and the end-of-line <delimiter> for
5454
10) to end lines.
5555

5656
>*Note:* If you specify text mode with the <open driver>, <open file>,
57-
> or <open process> <command|commands>,
58-
LiveCode translates line feed <characters> to the appropriate
59-
end-of-line marker for the current <platform(glossary)> before writing
60-
data, and translates the current <platform(glossary)|platform's>
61-
end-of-line <delimiter> to a line feed after reading data. If you
62-
specify binary mode with these <command|commands>, LiveCode does not
63-
perform this automatic translation. Likewise, if you put data into a
64-
<file> <URL> or get data from it, end-of-line translation is performed,
65-
but not if you put data into or get data from a <binfile> <URL>.
57+
> or <open process> <command|commands>, LiveCode translates line
58+
> feed <characters> to the appropriate end-of-line marker for the
59+
> current <platform(glossary)> before writing data, and translates the
60+
> current <platform(glossary)|platform's> end-of-line <delimiter> to a
61+
> line feed after reading data. If you specify binary mode with
62+
> these <command|commands>, LiveCode does not perform this automatic
63+
> translation. Likewise, if you put data into a <file> <URL> or get data
64+
> from it, end-of-line translation is performed, but not if you put data
65+
> into or get data from a <binfile> <URL>.
6666

6767
>*Note:* Starting with LiveCode v. 7, all text is stored as <Unicode>.
68-
> If you send text outside
69-
LiveCode you should convert it to the desired encoding using
70-
<textEncode>. If you receive text into LiveCode you should convert it to
71-
Unicode using <textDecode>.
68+
> If you send text outside LiveCode you should convert it to the desired
69+
> encoding using <textEncode>. If you receive text into LiveCode you
70+
> should convert it to Unicode using <textDecode>.
7271

7372
Changes:
7473
The LF synonym was added in version 2.0.

0 commit comments

Comments
 (0)