New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML headings and tree section #1

Closed
matses opened this Issue Nov 20, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@matses

matses commented Nov 20, 2015

Hi,

I suspect a bug in the sections tree generated by Herold, when 2 html headings share the same level :

eg with h2 :

<h1>title1</h1><p>para 1</p>
<h2>title 2.1</h2><p>para 2.1</p>
<h2>title 2.2</h2><p>para 2.2</p>

converted in :

<section>
    <title> title1 </title>
    <para>para 1</para>
    <section>
      <title>title 2.1</title>
      <para>para 2.1</para>
      <section>
        <title>title 2.2</title>
        <para>para 2.2</para>
      </section>
    </section>
  </section>

In this case, i expected section 2.1 and section 2.2 at the same level in the tree sections :

<section>
    <title> title1 </title>
    <para>para 1</para>
    <section>
      <title>title 2.1</title>
      <para>para 2.1</para>
    </section>      
     <section>
        <title>title 2.2</title>
        <para>para 2.2</para>      
    </section>
  </section>

Do you agree?

@mfuchs23

This comment has been minimized.

Show comment
Hide comment
@mfuchs23

mfuchs23 Nov 20, 2015

Owner

Hello, I agree. Which version of herold did you use?

Owner

mfuchs23 commented Nov 20, 2015

Hello, I agree. Which version of herold did you use?

@matses

This comment has been minimized.

Show comment
Hide comment
@matses

matses Nov 20, 2015

6.1.0-188.
The jar is from herold-6.1.0-188.tar.gz available at http://www.dbdoclet.org/index.html

matses commented Nov 20, 2015

6.1.0-188.
The jar is from herold-6.1.0-188.tar.gz available at http://www.dbdoclet.org/index.html

@mfuchs23

This comment has been minimized.

Show comment
Hide comment
@mfuchs23

mfuchs23 Nov 21, 2015

Owner

Fixed with release 8.0.0

Owner

mfuchs23 commented Nov 21, 2015

Fixed with release 8.0.0

@mfuchs23 mfuchs23 closed this Nov 21, 2015

@matses

This comment has been minimized.

Show comment
Hide comment
@matses

matses Nov 23, 2015

Thanks!
Is the jar available elsewhere or do i have to build it from sources by myself?

matses commented Nov 23, 2015

Thanks!
Is the jar available elsewhere or do i have to build it from sources by myself?

@mfuchs23

This comment has been minimized.

Show comment
Hide comment
@mfuchs23

mfuchs23 Nov 23, 2015

Owner

You can download installation packages from http://www.dbdoclet.org

Am 23.11.2015 um 10:18 schrieb matses:

Thanks!
Is the jar available elsewhere or do i have to build it from sources
by myself?


Reply to this email directly or view it on GitHub
#1 (comment).

Owner

mfuchs23 commented Nov 23, 2015

You can download installation packages from http://www.dbdoclet.org

Am 23.11.2015 um 10:18 schrieb matses:

Thanks!
Is the jar available elsewhere or do i have to build it from sources
by myself?


Reply to this email directly or view it on GitHub
#1 (comment).

@matses

This comment has been minimized.

Show comment
Hide comment
@matses

matses Nov 23, 2015

OK many thanks.
I made some tests this morning... Works well for the above example

But doesn't work for this one :

<p>para 1</p>
<h2>title 2.1</h2>
<p>para 2.1</p>
<h2>title 2.2</h2>
<p>para 2.2</p>

-->

<para>para 1</para>
<section>
  <title>title 2.1</title>
  <para>para 2.1</para>
  <section>
    <title>title 2.2</title>
    <para>para 2.2</para>
  </section>
</section>

My example is not very HTML5 compliant, because of the lack of h1, but it is a fragment...

matses commented Nov 23, 2015

OK many thanks.
I made some tests this morning... Works well for the above example

But doesn't work for this one :

<p>para 1</p>
<h2>title 2.1</h2>
<p>para 2.1</p>
<h2>title 2.2</h2>
<p>para 2.2</p>

-->

<para>para 1</para>
<section>
  <title>title 2.1</title>
  <para>para 2.1</para>
  <section>
    <title>title 2.2</title>
    <para>para 2.2</para>
  </section>
</section>

My example is not very HTML5 compliant, because of the lack of h1, but it is a fragment...

@mfuchs23

This comment has been minimized.

Show comment
Hide comment
@mfuchs23

mfuchs23 Nov 23, 2015

Owner

OK, thank you for testing. I will fix it as soon as possible.

Owner

mfuchs23 commented Nov 23, 2015

OK, thank you for testing. I will fix it as soon as possible.

@mfuchs23

This comment has been minimized.

Show comment
Hide comment
@mfuchs23

mfuchs23 Nov 26, 2015

Owner

Hello, this issue is fixed with release 8.0.1

Am 23.11.2015 um 11:57 schrieb matses:

OK many thanks.
I made some tests this morning... Works well for the above example

But doesn't work for this one :

para 1

title 2.1

para 2.1

title 2.2

para 2.2

-->

para 1

<title>title 2.1</title> para 2.1 <title>title 2.2</title> para 2.2

My example is not very HTML5 compliant, because of the lack of h1, but
it is a fragment...


Reply to this email directly or view it on GitHub
#1 (comment).

Tel. 0160 7845384
michael.fuchs@dbdoclet.org
http://www.dbdoclet.org

Owner

mfuchs23 commented Nov 26, 2015

Hello, this issue is fixed with release 8.0.1

Am 23.11.2015 um 11:57 schrieb matses:

OK many thanks.
I made some tests this morning... Works well for the above example

But doesn't work for this one :

para 1

title 2.1

para 2.1

title 2.2

para 2.2

-->

para 1

<title>title 2.1</title> para 2.1 <title>title 2.2</title> para 2.2

My example is not very HTML5 compliant, because of the lack of h1, but
it is a fragment...


Reply to this email directly or view it on GitHub
#1 (comment).

Tel. 0160 7845384
michael.fuchs@dbdoclet.org
http://www.dbdoclet.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment