Hi there

If you have something like this:

<h1>2009</h1>
<h2>test</h2>
<h3>8000</h3>
<h1>2010</h1>
<h3>9000</h3>

TOC will output:

1.  test
  1. 8000
  2. 9000

This behavior appears also in version 2.3

Regards Jens

CommentFileSizeAuthor
#5 toc.png19.95 KBJensH

Comments

AlexisWilke’s picture

Jens,

I had noticed some problems, but had not really determined what it was. That's indeed a big one! I will look into it soon. Thank you for the clear test sample.

Thank you.
Alexis

jennifer.chang’s picture

Same problem here.
It's probably a problem with the regexp.

AlexisWilke’s picture

I tried last night and could not reproduce that problem with the current version... (and I thought I posted a comment here last night?! maybe I did write it and not click Save...)

Could you try with the newest -dev version? (Feb 8)

Thank you.
Alexis Wilke

jennifer.chang’s picture

Version: 6.x-3.1 » 5.x-2.2

Sorry, I got confused between my D6 sites and my D5 ones.

I just tested the latest TOC on a D6 and I can't reproduce.
I don't know about the OP, but I experience the bug on a D5 site with tableofcontents-5-x-2.2

JensH’s picture

Version: 5.x-2.2 » 6.x-3.x-dev
StatusFileSize
new19.95 KB

Tested it with the Feb. 8-Dev and still got the same result. Used the "Full HTML" Preset with the order: URL filter, Line break converter, TOC, HTML corrector.

izkreny’s picture

Version: 6.x-3.x-dev » 6.x-3.4
Status: Active » Fixed

JFTR: this is working @ Drupal 6.16 and ToC 6.x-3.4 version, just tested.

I suppose it's OK if I change status to fixed.. :)

AlexisWilke’s picture

Version: 6.x-3.4 » 5.x-2.x-dev
Status: Fixed » Active

mariomaric,

I'm reopening as a D5 problem since it is not fixed in D5.

Thank you.
Alexis