summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2023-01-23 10:48:51 -0600
committerKarl Hallsby <karl@hallsby.com>2023-01-23 10:48:51 -0600
commit055ed9791c6846f0257295c7203fd64f8019325b (patch)
treed682d9757704d12b89ba0c16485ed3bb4f875d2e
parent3019b9c138ed0ffc1fd5598f19a80fd24f01588e (diff)
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.
-rw-r--r--resumeconfig.sty2
1 files changed, 1 insertions, 1 deletions
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]{%