From 944767c9a48d794ec3e6076d202be7c09249d3e9 Mon Sep 17 00:00:00 2001
From: Aaron LI <aly@aaronly.me>
Date: Fri, 6 Dec 2024 09:31:42 +0800
Subject: class: Suppress the trailing blank after the right-placed photo

---
 resume.cls | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'resume.cls')

diff --git a/resume.cls b/resume.cls
index 1bea11d..adb558c 100644
--- a/resume.cls
+++ b/resume.cls
@@ -276,12 +276,12 @@
     \begin{minipage}{\@photo@width}
       \ifdefstring{\@photo@shape}{square}{%
         \tikz\path[fill overzoom image={#3}]
-          rectangle (\linewidth, \linewidth);%
+          rectangle (\linewidth, \linewidth);% (suppress blank)
       }{%
         \tikz\path[fill overzoom image={#3}]
-          circle[radius=0.5\linewidth];%
+          circle[radius=0.5\linewidth];% (suppress blank)
       }%
-    \end{minipage}
+    \end{minipage}% (suppress blank)
   }
 }
 
@@ -343,7 +343,7 @@
   \end{minipage}
   \ifdef{\@photo}{%
     % photo on the right side
-    \ifdefstring{\@photo@position}{left}{}{\hfill\@photo}
+    \ifdefstring{\@photo@position}{left}{}{\hfill\@photo}% (suppress blank)
   }{}
 }
 
-- 
cgit v1.2.2

