Package: ikiwiki
Version: 2.53
Severity: normal
Tags: patch
Hello,
thanks for ikiwiki!
I noticed that the toggleable plugin sometimes fails to make some text
toggleable: the text is shown, and the toggle links don't do anything.
I traced the problem to the HTML being tidied: instead of:
<div class="toggleable" id="foobarbaz"></div>
the plugin would have to process:
<div class="toggleable" id="foobarbaz">
</div>
and the regexp at line 109 of toggle.pm would fail:
if ($params{content}=~s!(<div class="toggleable(?:-open)?"
id="[^"]+">)</div>!$1!g)
Fixing this is simple: just adding \s* works:
if ($params{content}=~s!(<div class="toggleable(?:-open)?"
id="[^"]+">\s*)</div>!$1!g)
Ciao,
Enrico
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ikiwiki depends on:
ii libhtml-parser-perl 3.56-1+b1 A collection of modules that parse
ii libhtml-scrubber-perl 0.08-4 Perl extension for scrubbing/sanit
ii libhtml-template-perl 2.9-1 HTML::Template : A module for usin
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii markdown 1.0.1-7 Text-to-HTML conversion tool
ii perl 5.10.0-11 Larry Wall's Practical Extraction
Versions of packages ikiwiki recommends:
ii bzr 1.5-1 easy to use distributed version co
ii gcc [c-compiler] 4:4.3.1-1 The GNU C compiler
ii gcc-4.1 [c-compiler] 4.1.2-23 The GNU C compiler
ii gcc-4.2 [c-compiler] 4.2.4-3 The GNU C compiler
ii gcc-4.3 [c-compiler] 4.3.1-2 The GNU C compiler
ii git-core 1:1.5.6.2-1 fast, scalable, distributed revisi
ii libauthen-passphrase-perl 0.005-3 Perl module encapsulating hashed p
ii libc6-dev [libc-dev] 2.7-10 GNU C Library: Development Librari
ii libcgi-formbuilder-perl 3.05.01-6 Easily generate and process statef
ii libcgi-session-perl 4.32-1 Persistent session data in CGI app
ii liblwpx-paranoidagent-perl 1.03-1.1 a "paranoid" subclass of LWP::User
ii libmail-sendmail-perl 0.79-5 Send email from a perl script
ii libnet-openid-consumer-perl 0.14-2 library for consumers of OpenID id
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
ii libxml-simple-perl 2.18-1 Perl module for reading and writin
ii subversion 1.5.0dfsg1-4 Advanced version control system
Versions of packages ikiwiki suggests:
ii graphviz 2.20.0-1 rich set of graph drawing tools
ii libcrypt-ssleay-per 0.57-1+b1 Support for https protocol in LWP
ii libdigest-sha1-perl 2.11-2+b1 NIST SHA-1 message digest algorith
pn libfile-mimeinfo-pe <none> (no description available)
ii liblocale-gettext-p 1.05-4 Using libc functions for internati
ii libmailtools-perl 2.03-1 Manipulate email in perl programs
pn libnet-amazon-s3-pe <none> (no description available)
pn librpc-xml-perl <none> (no description available)
pn libsearch-xapian-pe <none> (no description available)
pn libtext-csv-perl <none> (no description available)
pn libtext-typography- <none> (no description available)
pn libtext-wikiformat- <none> (no description available)
pn libxml-feed-perl <none> (no description available)
ii perlmagick 7:6.3.7.9.dfsg1-2+b2 Perl interface to the libMagick gr
ii polygen 1.0.6.ds2-6 generator of random sentences from
ii python 2.5.2-1 An interactive high-level object-o
ii python-docutils 0.4-6 Utilities for the documentation of
ii tidy 20080116cvs-2 HTML syntax checker and reformatte
pn viewvc | gitweb | v <none> (no description available)
pn xapian-omega <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]