aboutsummaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.js b/cli.js
index f573013..8098dc7 100755
--- a/cli.js
+++ b/cli.js
@@ -285,7 +285,7 @@ if ((idx = params.indexOf("-r")) > -1) {
let pageY = 0;
for (const prof of profs) {
const [t, a, p, s] = prof.split(";").map(sanitize);
- textex += `\\def\\profname{${t}}\\def\\profabi{${a}}\\def\\profprof{${p}}\\def\\profsecret{${s}}\\def\\profnum{${flip}}\\def\\profx{${pageY}}\\teacherprofile\n`;
+ textex += `\\def\\profname{${t}}\\def\\profabi{${a}}\\def\\profprof{${p}}\\def\\profsecret{${s}}\\def\\profnum{${flip}}\\def\\profx{${pageY}}\\def\\proflast{${+(flip % 3 === 0)}}\\teacherprofile\n`;
if (flip % 3 === 0) {
textex += "\\clearpage\n";
}