From 055ed9791c6846f0257295c7203fd64f8019325b Mon Sep 17 00:00:00 2001
From: Karl Hallsby <karl@hallsby.com>
Date: Mon, 23 Jan 2023 10:48:51 -0600
Subject: Date ranges between years no longer have extra space on ending year

When creating a date between two years, with no months used at all,
i.e. \DateRange{YYYY}{00}{00}{YYYY}{00}{00}, the end date would insert
an empty space for the month. Using \ignorespaces means the \numdash
command will absorb all spaces until the first non-space character.

This ensures that all dates appear to have the same range on them, if
whether they specify year->year or month/year->month/year ranges.
---
 resumeconfig.sty | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'resumeconfig.sty')

diff --git a/resumeconfig.sty b/resumeconfig.sty
index 4622168..8753f57 100644
--- a/resumeconfig.sty
+++ b/resumeconfig.sty
@@ -9,7 +9,7 @@
 % Syntax: \daterange{yyyy1}{mm1}{dd1}{yyyy2}{mm2}{dd2}
 \newcommand*{\Daterange}[6]{%
   \textsc{\small%
-    \DTMdisplaydate{#1}{#2}{#3}{-1}\numdash\DTMdisplaydate{#4}{#5}{#6}{-1}%
+    \DTMdisplaydate{#1}{#2}{#3}{-1}\numdash\ignorespaces\DTMdisplaydate{#4}{#5}{#6}{-1}%
   }
 }
 \newcommand*{\DatetoPresent}[3]{%
-- 
cgit v1.2.3

