runtime(doc): handle newlines in base64 string encode example
Commit:
https://github.com/vim/vim/commit/bc84fd145b170348d0e62dc7bbf356304e493700
Author: zeertzjq <
zeer...@outlook.com>
Date: Thu Jul 17 20:30:55 2025 +0200
runtime(doc): handle newlines in base64 string encode example
closes:
https://github.com/vim/vim/issues/17777
Signed-off-by: zeertzjq <
zeer...@outlook.com>
Signed-off-by: Yegappan Lakshmanan <
yega...@yahoo.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 5e395e6d7..e1847b1d3 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -1,4 +1,4 @@
-*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 14
+*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 17
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1268,7 +1268,7 @@ base64_encode({blob}) *base64_encode()*
" Encode the contents of a binary file
echo base64_encode(readblob('somefile.bin'))
" Encode a string
- echo base64_encode(str2blob([somestr]))
+ echo base64_encode(str2blob(somestr->split("
")))
<
Can also be used as a |method|: >
GetBinaryData()->base64_encode()