From bc84fd145b170348d0e62dc7bbf356304e493700 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 17 Jul 2025 20:30:55 +0200 Subject: [PATCH] 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 --- runtime/doc/builtin.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.47.2