diff options
Diffstat (limited to 'cli.js')
-rwxr-xr-x | cli.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; } |