Skip to content
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 TOC reversed when using --nosort #23

Open
jon-turney opened this issue Jan 9, 2022 · 2 comments
Open

HTML TOC reversed when using --nosort #23

jon-turney opened this issue Jan 9, 2022 · 2 comments

Comments

@jon-turney
Copy link

Since 9a4eadf, TOC in HTML output appears in the opposite order to that intended, when using --nosort

@jon-turney
Copy link
Author

e.g foo.c

/****** Section/ A
 *  NAME
 *   This is A
 ******
 */

/****** Section/ B
 *  NAME
 *   This is B
 ******
 */

robodoc --src . --doc doc --multidoc --html --nosort --sections --sectionnameonly --toc

relevant part of doc/foo_c.html:

...
<h3>TABLE OF CONTENTS</h3>
<ul>
<li><a href="#robo1"> B</a></li>
<li><a href="#robo0"> A</a></li>
</ul>
...

@AJ-Ianozi
Copy link

Happening for me too. Even when I'm not using nosort, header types of equal priority are also inverted by letter and number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants