aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resume.cls7
1 files changed, 5 insertions, 2 deletions
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