From 10c44067bd8d7a231759484a59d87d973fb690a0 Mon Sep 17 00:00:00 2001
From: Aaron LI <aly@aaronly.me>
Date: Thu, 5 Dec 2024 12:49:14 +0800
Subject: class: Clean up pdftitle and pdfauthor

---
 resume.cls | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

(limited to 'resume.cls')

diff --git a/resume.cls b/resume.cls
index 74a77a3..738a0c9 100644
--- a/resume.cls
+++ b/resume.cls
@@ -64,20 +64,15 @@
   \hypersetup{%
     pdfborder={0 0 0},% No border around links
     pdfauthor={%
-      \ifdef{\@zh}{%
-        \@lastname\@firstname%
-      }{%
-        \@firstname{} \@lastname%
-      }%
+      \ifdef{\@zh}%
+        {\@lastname\@firstname}%
+        {\@firstname{} \@lastname}%
     },%
     pdftitle={%
-      \ifdef{\@zh}{%
-        简历 | \@lastname\@firstname{}
-        \ifdef{\@tagline}{| \@tagline}{}%
-      }{%
-        Resume | \@firstname{} \@lastname{}
-        \ifdef{\@tagline}{| \@tagline}{}%
-      }%
+      \ifdef{\@zh}%
+        {简历 | \@lastname\@firstname{}}%
+        {Resume | \@firstname{} \@lastname{}}%
+      \ifdef{\@tagline}{ | \@tagline}{}%
     },%
     pdfkeywords={\ifdef{\@keywords}{\@keywords}{}},%
   }%
-- 
cgit v1.2.2

