From cf1dd17dd6fab12220b2e0d44a6f9b9d876e0026 Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Fri, 5 May 2023 11:54:15 +0800 Subject: [PATCH] fix(console): trim trailing spaces in app guide code sample (#3811) --- .../console/src/pages/Applications/components/Guide/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/console/src/pages/Applications/components/Guide/index.tsx b/packages/console/src/pages/Applications/components/Guide/index.tsx index 47b1694ee..f114e1407 100644 --- a/packages/console/src/pages/Applications/components/Guide/index.tsx +++ b/packages/console/src/pages/Applications/components/Guide/index.tsx @@ -94,9 +94,9 @@ function Guide({ app, isCompact, onClose }: Props) { const [, language] = /language-(\w+)/.exec(String(className ?? '')) ?? []; return language ? ( - + ) : ( - {String(children)} + {String(children).trimEnd()} ); }, a: ({ children, ...props }) => (