From d0630a0f0ea5652b9a712977df74d8a192989ee1 Mon Sep 17 00:00:00 2001
From: Aaron LI <aly@aaronly.me>
Date: Fri, 6 Dec 2024 13:41:44 +0800
Subject: class: Explain why \ignorespaces is required for CJK abstract

---
 resume.cls | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'resume.cls')

diff --git a/resume.cls b/resume.cls
index 3603b5a..5661bb9 100644
--- a/resume.cls
+++ b/resume.cls
@@ -352,8 +352,11 @@
   \phantomsection
   \addcontentsline{toc}{section}{\ifdef{\@zh}{摘要}{Abstract}}
   \ifdef{\@zh}{%
-    \onehalfspacing\hspace{2em}%
-    \ignorespaces% remove the beginning glue to make the indentation correct
+    % Use "\ignorespaces" to remove the beginning space, which becomes a
+    % glue between western and CJK characters, to make the indentation
+    % correct.
+    % Credit: https://tex.stackexchange.com/a/331456
+    \onehalfspacing\hspace{2em}\ignorespaces
   }{}%
 }{%
   \par
-- 
cgit v1.2.2

