Package: asciidoc Version: 10.0.1-3 Severity: important Tags: patch One of the recent uploads of asciidoc broke the slidy backend. (Version 9.0.0~rc2-1 in Bullseye still works fine.)
Trying to generate a simple HTML+JavaScript slideshow with the Slidy backend (like the attached dummy.txt) results in a non-working slideshow (just static HTML content) and these warnings on the commandline: $ asciidoc dummy.txt asciidoc: WARNING: dummy.txt: line 4: include file not found: /etc/asciidoc/javascripts/asciidoc.js asciidoc: WARNING: dummy.txt: line 4: include file not found: /etc/asciidoc/javascripts/slidy.js The fix seems rather simple: Add a symbolic link at /etc/asciidoc/javascripts pointing to /usr/share/asciidoc/javascripts, i.e. # ln -vis /usr/share/asciidoc/javascripts /etc/asciidoc/javascripts '/etc/asciidoc/javascripts' -> '/usr/share/asciidoc/javascripts' This should be easily doable via e.g. a debian/asciidoc-common.links file since asciidoc-common is also the package which contains /usr/share/asciidoc/javascripts/. Here's my dummy slide show and the generated results without and with that symbolic link:
Asciidoc 10 + Slidy Bug Report ============================== :author: Axel Beckert <a...@debian.org> :backend: slidy Single Slide ------------ This is a dummy slide to have some content in here.Title: Asciidoc 10 + Slidy Bug Report
<<< text/html; charset=utf-8: Unrecognized >>>
The difference between those two HTML files is a single large (80kB) hunk of JavaScript code: $ diff dummy_BROKEN.html dummy_WORKS.html | diffstat unknown | 2845 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2845 insertions(+) In the working example you can switch between the title slide and the sole other slide with cursor keys. The broken example is just a single HTML page showing the contents of both slides at once and without any functionality. -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.14.0-4-amd64 (SMP w/4 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages asciidoc depends on: ii asciidoc-base 10.0.1-3 Versions of packages asciidoc recommends: ii asciidoc-dblatex 10.0.1-3 asciidoc suggests no packages. -- no debconf information