From 3b000eb8ad427a0298606a6d2598a8f0a79c27c7 Mon Sep 17 00:00:00 2001 From: octaeder <102688820+octaeder@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:36:28 +0100 Subject: [PATCH] packageHelp: improved printing of package.version --- src/latexrepository.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/latexrepository.cpp b/src/latexrepository.cpp index cbc56519d6..12804d9701 100644 --- a/src/latexrepository.cpp +++ b/src/latexrepository.cpp @@ -157,7 +157,8 @@ QString LatexRepository::packageInfo(LatexPackageInfo package) Info += tr("- Name : ")+package.name+"\n"; Info += tr("- Caption : ")+package.caption+"\n"; Info += tr("- Authors : \n")+package.authorsFullName()+"\n"; - Info += tr("- Version : ")+package.version.number+", "+package.version.date.toString()+"\n"; + QString delim = ( package.version.number.isEmpty() || !package.version.date.isValid() ? "" : ", " ); + Info += tr("- Version : ")+package.version.number+delim+package.version.date.toString()+"\n"; Info += tr("- Documentation : \n")+package.showAllDocumentation()+"\n"; Info += tr("- Copyright : \n")+package.showAllCopyrights()+"\n"; Info += tr("- License : \n")+package.showAllLicenses()+"\n";