summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/SVGOutput.cpp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-21 03:01:16 +0000
committerNorbert Preining <norbert@preining.info>2022-01-21 03:01:16 +0000
commit5d5f239204f5c0d1f7573c9ebc64b5ad1ae75b49 (patch)
treedd2a2d9a64fd0be0785bc558a4872a3c8185af23 /dviware/dvisvgm/src/SVGOutput.cpp
parent217d27e597baa589f8e115e1b44eef51c7bb5dd0 (diff)
CTAN sync 202201210301
Diffstat (limited to 'dviware/dvisvgm/src/SVGOutput.cpp')
-rw-r--r--dviware/dvisvgm/src/SVGOutput.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/dviware/dvisvgm/src/SVGOutput.cpp b/dviware/dvisvgm/src/SVGOutput.cpp
index 59a26764a7..6ba41f1c7d 100644
--- a/dviware/dvisvgm/src/SVGOutput.cpp
+++ b/dviware/dvisvgm/src/SVGOutput.cpp
@@ -2,7 +2,7 @@
** SVGOutput.cpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2021 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2022 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -139,6 +139,11 @@ string SVGOutput::expandFormatString (string str, int page, int numPages, const
}
break;
}
+ case 'n':
+ case 'N':
+ oss << (str[pos] == 'n' ? _fileNumber : _fileCount);
+ result += oss.str();
+ break;
case 'p':
case 'P':
oss << (str[pos] == 'p' ? page : numPages);