develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #99096] Pod::Html does not handle all multi-angle interior sequences correctly

From:
jens . schmidt35 @ arcor . de
Date:
September 14, 2011 14:14
Subject:
[perl #99096] Pod::Html does not handle all multi-angle interior sequences correctly
Message ID:
rt-3.6.HEAD-31297-1316001620-1945.99096-75-0@perl.org
# New Ticket Created by  jens.schmidt35@arcor.de 
# Please include the string:  [perl #99096]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=99096 >


This is a bug report for perl from jens.schmidt35@arcor.de,
generated with the help of perlbug 1.39 running under perl 5.12.2.


-----------------------------------------------------------------
[Please describe your issue here]

Consider the following pod snippet, where the interior sequence starts with a
newline:

=pod

foo C<<
<bar> >>

=cut

When run through pod2html, this results in the following paragraph:

<p>foo <code>&lt;
&lt;bar</code> &gt;&gt;</p>

When I replace the regular expression "[^\S\n]" in Pod::Html by a simple "\s",
the result looks as expected:

<p>foo <code>&lt;bar&gt;</code></p>

Not sure why an IS must not start with a newline after the opening angles.
This is very inconvenient since your favorite text editor may place a newline
immediately after the opening angels when reformatting paragraphs.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=medium
    module=Pod::Html
---
Site configuration information for perl 5.12.2:

Configured by oraic at Mon Dec 20 11:09:30 CET 2010.

Summary of my perl5 (revision 5 version 12 subversion 2) configuration:
   
  Platform:
    osname=linux, osvers=2.6.18-8.el5, archname=i686-linux-thread-multi
    uname='linux ls3094 2.6.18-8.el5 #1 smp fri jan 26 14:15:21 est 2007 i686 i686 i386 gnulinux '
    config_args='-d -Dusethreads=yes -Dusevendorprefix=no -Dprefix=/sapmnt/oraic/tools/perl-5.12'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.12.2:
    /sapmnt/oraic/tools/perl-5.12/lib/site_perl/5.12.2/i686-linux-thread-multi
    /sapmnt/oraic/tools/perl-5.12/lib/site_perl/5.12.2
    /sapmnt/oraic/tools/perl-5.12/lib/5.12.2/i686-linux-thread-multi
    /sapmnt/oraic/tools/perl-5.12/lib/5.12.2
    .

---
Environment for perl 5.12.2:
    HOME=/home/sbpadm
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About