Skip Menu |

This queue is for tickets about the Doxygen-Filter-Perl CPAN distribution.

Report information
The Basics
Id: 123904
Status: open
Priority: 0/
Queue: Doxygen-Filter-Perl

People
Owner: Nobody in particular
Requestors: purification [...] ukr.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Superfluous HTML generated for @code sections
Date: Mon, 18 Dec 2017 10:28:37 +0200
To: bug-Doxygen-Filter-Perl [...] rt.cpan.org
From: purification [...] ukr.net
The following doxygen markup: # @code # my $obj = Class->new; # my @vals = $obj->run({ text => 'foo', id => 31 }); # @endcode Produces the following output: https://i.imgur.com/wZx2S7i.png Those <br> tags do not seem to belong there.
Subject: [rt.cpan.org #123904]
Date: Thu, 25 Apr 2019 11:00:25 +0200
To: bug-Doxygen-Filter-Perl [...] rt.cpan.org
From: Matthias Bissinger <matthias.bissinger [...] fau.de>
Hi, this bug seems to be related to line 1011 in lib/Doxygen/Filter/Perl.pm   $sBlockDetails .= $line . "<br>"; We can prevent this additional line break in a verbatim block by replacing this line with   $sBlockDetails .= $line;   if ($iInVerbatimBlock == 0) { $sBlockDetails .= "<br>"; } However, @code is not recognized yet as a verbatim block. Thus, I suggest to replace lines 989-1000 with   my $cmd = $1 if $line =~ /^\s*#\s*\@([a-z]*)/;   if ($cmd eq 'verbatim' || $cmd eq 'code')       {           $logger->debug("Found $cmd command");           # We need to remove the comment marker from the '# @...' line now since it will not be caught later           $line =~ s/^\s*#\s*/ /;           $iInVerbatimBlock = 1;       }       elsif ($cmd eq 'endverbatim' || $cmd eq 'endcode')       {           $logger->debug("Found $cmd command");           $iInVerbatimBlock = 0;       } Hope that helps