Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105004 - latex2html--verbatimfiles.perl: command verbatimlisting doubles linenumbers
Summary: latex2html--verbatimfiles.perl: command verbatimlisting doubles linenumbers
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-06 04:28 UTC by Michael Reithinger
Modified: 2008-10-31 21:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Reithinger 2005-09-06 04:28:41 UTC
the line 88 of verbatimfiles.perl has to be changed from   
   s/(^|\n)/$1.sprintf("%4d ",++$counter)/ge;  
to  
   s/^/$1.sprintf("%4d ",++$counter)/ge; 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-06 04:37:56 UTC
Having lost my crystal ball, I have really no clue what ebuild are you talking
about.
Comment 2 Michael Reithinger 2005-09-06 11:54:11 UTC
You can find the bug in all latex2html versions. 
Comment 3 Alexis Ballier gentoo-dev 2008-10-31 21:20:52 UTC
this doesn't double the line numbers here:
foo.tex:
\documentclass{article}
\usepackage{verbatimfiles}
\begin{document}
\verbatimlisting{foo}
\end{document}

and produces something like:

   1 \documentclass{article}
   2 \usepackage{verbatimfiles}
   3 \begin{document}
   4 \verbatimlisting{foo}
   5 \end{document}


please reopen and provide a suitable way to reproduce the problem.