From aa77b2208ec977ff4564b82bf7e043853f7c146c Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Tue, 2 Sep 2025 14:42:45 +0800 Subject: [PATCH] =?UTF-8?q?docs(imageview):=20=E4=BF=AE=E6=AD=A3=E5=B8=AE?= =?UTF-8?q?=E5=8A=A9=E4=BF=A1=E6=81=AF=E4=B8=AD=E7=9A=84=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用多行字符串语法([[ ]])替代直接换行,提高代码可读性并避免潜在的语法问题 --- data/computercraft/lua/rom/programs/imageview.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/computercraft/lua/rom/programs/imageview.lua b/data/computercraft/lua/rom/programs/imageview.lua index 552f965..c237ced 100644 --- a/data/computercraft/lua/rom/programs/imageview.lua +++ b/data/computercraft/lua/rom/programs/imageview.lua @@ -10,9 +10,10 @@ local function printHelp() print("Usage: imageview ") print("Options:") print(" --help, -h Show this help message") - print(" + print([[ Displays an image from the specified URL. -Press ESC to exit back to shell.") +Press ESC to exit back to shell. +]]) end -- 下载图片函数