Skip to content

Commit bc84fd1

Browse files
zeertzjqchrisbra
authored andcommitted
runtime(doc): handle newlines in base64 string encode example
closes: #17777 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 175662f commit bc84fd1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/doc/builtin.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 14
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1268,7 +1268,7 @@ base64_encode({blob}) *base64_encode()*
12681268
" Encode the contents of a binary file
12691269
echo base64_encode(readblob('somefile.bin'))
12701270
" Encode a string
1271-
echo base64_encode(str2blob([somestr]))
1271+
echo base64_encode(str2blob(somestr->split("\n")))
12721272
<
12731273
Can also be used as a |method|: >
12741274
GetBinaryData()->base64_encode()

0 commit comments

Comments
 (0)