runtime(doc): handle newlines in base64 string encode example

Commit: 
https://github.com/vim/vim/commit/bc84fd145b170348d0e62dc7bbf356304e493700
Author: zeertzjq <zeert...@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 <zeert...@outlook.com>
    Signed-off-by: Yegappan Lakshmanan <yegap...@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()

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1ucTbL-00BeXL-Ic%40256bit.org.

Raspunde prin e-mail lui