From: zeertzjq Date: Thu, 17 Jul 2025 18:30:55 +0000 (+0200) Subject: runtime(doc): handle newlines in base64 string encode example X-Git-Tag: v9.1.1559~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc84fd145b170348d0e62dc7bbf356304e493700;p=thirdparty%2Fvim.git runtime(doc): handle newlines in base64 string encode example closes: #17777 Signed-off-by: zeertzjq Signed-off-by: Yegappan Lakshmanan Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 5e395e6d70..e1847b1d3b 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("\n"))) < Can also be used as a |method|: > GetBinaryData()->base64_encode()