diff options
Diffstat (limited to 'macros/latex/contrib/gitver/gitver.sty')
-rw-r--r-- | macros/latex/contrib/gitver/gitver.sty | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/latex/contrib/gitver/gitver.sty b/macros/latex/contrib/gitver/gitver.sty index 38165fe809..d5a6963d0e 100644 --- a/macros/latex/contrib/gitver/gitver.sty +++ b/macros/latex/contrib/gitver/gitver.sty @@ -19,7 +19,7 @@ \NeedsTeXFormat{LaTeX2e} \def\@gitVerPkgName{gitver} \ProvidesPackage{\@gitVerPkgName} - [2019/02/06 v1.0 Access current git version and optionally add it to document headers] + [2020/04/30 v1.1 Access current git version and optionally add it to document headers] \RequirePackage{hyperref} \RequirePackage{catchfile} @@ -73,10 +73,10 @@ \@gitver@successfalse \IfFileExists{\jobname_desc.aux}{ % Read the file into \gitVer - \CatchFileDef{\gitVer}{\jobname_desc.aux}{} + \CatchFileDef{\gitVer}{\jobname_desc.aux}{\endlinechar=-1} - % Check if the macro \gitVer is "\par ": this is its definition if the file had no contents - \def\@gitver@emptyfile{\par } + % Check if the macro \gitVer is empty: this is its definition if the file had no contents + \def\@gitver@emptyfile{} \ifx\gitVer\@gitver@emptyfile% \PackageError{\@gitVerPkgName}{Git output is empty: is this folder a git repo?}{Make sure that this directory has had "git init" called in it, and has at least one commit.} |