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

Nested lists don't work #16

Open
apjanke opened this issue Dec 25, 2018 · 2 comments
Open

Nested lists don't work #16

apjanke opened this issue Dec 25, 2018 · 2 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@apjanke
Copy link
Owner

apjanke commented Dec 25, 2018

Legacy bug report: rtomayko/ronn#55

Nested lists that look like definition lists don't render properly. In some cases, the nested list is omitted entirely.

Test file at https://github.com/apjanke/ronn-ng/blob/master/test/nested_list.ronn.

nested_list test
================

## TEST

* foo:
  Blablabla.

* bar:
  Blablabla.

  - bar-foo:
    Bububu.

  - bar-baz:
    Bububu.

* baz:
  Blablabla.

Results:

$ bin/ronn --roff --pipe test/nested_list.ronn
warn: unrecognized inline tag: ["dl"]
.\" generated with Ronn-NG/v0.8.0
.\" http://github.com/apjanke/ronn-ng/tree/0.8.0-SNAPSHOT
.TH "NESTED_LIST" "" "December 2018" "" ""
.SH "TEST"
.TP
foo
Blablabla\.
.TP
bar
Blablabla\.
.TP
baz
Blablabla\.

The inner nested list is missing. Looks like it's because the dt is being passed through the inline filter, which can't handle nested lists.

@apjanke apjanke self-assigned this Dec 25, 2018
@apjanke apjanke added the bug Something isn't working label Dec 25, 2018
@apjanke apjanke added this to Needs triage in ronn-ng via automation Dec 25, 2018
@apjanke apjanke moved this from Needs triage to High priority in ronn-ng Dec 25, 2018
@apjanke
Copy link
Owner Author

apjanke commented Dec 25, 2018

References:

Looks like I need to set up a stack for controlling the indent width of the .TP macros used for list items. Or switch to using .RS/.RE.

@apjanke apjanke changed the title Nested lists that look like definition lists don't work Nested lists don't work Dec 26, 2018
@apjanke
Copy link
Owner Author

apjanke commented Dec 26, 2018

Asked on SO about using .IP/.RS/.RE to make nested lists. It kinda works, but the formatting is wrong. https://stackoverflow.com/questions/53936179/nested-bulleted-lists-in-roff-groff

@apjanke apjanke added this to the 0.8.1 milestone Dec 27, 2018
@apjanke apjanke modified the milestones: 0.8.1, 0.8.2 Feb 17, 2019
@apjanke apjanke removed this from the 0.8.2 milestone Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: High priority
ronn-ng
  
High priority
Development

No branches or pull requests

1 participant