• Resolved k1d

    (@k1d)


    Source:

    <h2>111</h2>
      <h3>aaa</h3>
      <h3>bbb</h3>
    <h2>222</h2>
      <h3>aaa</h3>
      <h3>bbb</h3>

    Output Code:

    <h2><span class="ez-toc-section" id="111"></span>111</h2>
      <h3><span class="ez-toc-section" id="aaa"></span><span class="ez-toc-section" id="aaa-2"></span>aaa</h3>
      <h3><span class="ez-toc-section" id="bbb"></span><span class="ez-toc-section" id="bbb-2"></span>bbb</h3>
    <h2><span class="ez-toc-section" id="222"></span>222</h2>
      <h3>aaa</h3>
      <h3>bbb</h3>
Viewing 11 replies - 1 through 11 (of 11 total)
  • Steven

    (@shazahm1hotmailcom)

    Yes, if you purposefully do that, it will not work. In real world usage you will not be putting the same heading on the page multiple times.

    Thread Starter k1d

    (@k1d)

    It is not uncommon for subsections to have the same heading.
    Example:

    <h1> Syntax for each programming language </h1>
    ?? <h2> loop </h2>
    ???? <h3> COBOL </h3>
    ???? <h3> FORTRAN </h3>
    ???? <h3> C language </h3>
    ?? <h2> Conditional branch </h2>
    ???? <h3> COBOL </h3>
    ???? <h3> FORTRAN </h3>
    ???? <h3> C language </h3>
    Steven

    (@shazahm1hotmailcom)

    Sorry, but I am not going to be able to deal with such a scenario as there will be no way to know which in page anchor will be long to which heading.

    Thread Starter k1d

    (@k1d)

    It may be my memory mistake, but I think it used to work correctly.

    Thread Starter k1d

    (@k1d)

    As an experiment, I installed an old version (Easy-Table-of-Contents-2.0.5.zip).
    This gives the correct result.

    <h2>111<span class="ez-toc-section" id="111"></span></h2>
    <h3>aaa<span class="ez-toc-section" id="aaa"></span></h3>
    <h3>bbb<span class="ez-toc-section" id="bbb"></span></h3>
    <h2>222<span class="ez-toc-section" id="222"></span></h2>
    <h3>aaa<span class="ez-toc-section" id="aaa-2"></span></h3>
    <h3>bbb<span class="ez-toc-section" id="bbb-2"></span></h3>
    Steven

    (@shazahm1hotmailcom)

    Well, then please keep testing to find out the first version which did not work and I’ll take a look. That’ll limit the where to look for changes.

    Thread Starter k1d

    (@k1d)

    I did additional testing.
    The version 2.0.6 gives correct results, but the version 2.0.7 gives incorrect results. Therefore, the version 2.0.7 is considered the first version with this problem.
    I hope this helps solve the problem.

    Steven

    (@shazahm1hotmailcom)

    I’ve been able to identify the change and make a slight tweak which should correct this issue. I did test with examples you supplied and they worked. The change will be in the next released update.

    Thread Starter k1d

    (@k1d)

    Wonderful!
    I am looking forward to the new version.

    Thread Starter k1d

    (@k1d)

    I tried the newly released version 2.0.10.
    It works very well.
    Thank you very much.

    Steven

    (@shazahm1hotmailcom)

    Great to hear!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Tag insertion position is incorrect for the same section name’ is closed to new replies.