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

Unable to show tab spaces #22

Open
ghost opened this issue Nov 8, 2016 · 1 comment
Open

Unable to show tab spaces #22

ghost opened this issue Nov 8, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 8, 2016

Hi,

When my .rtf file contains list with sub-list it is not showing any tab space for the sub-list items. It is showing both the list and sub-list items as same.

For ex. In my .rtf file I've items as shown below.

  • First item
  • Second item
    - sub-item
    - sub-item2

and it is showing as

  • First item
  • Second item
  • sub-item
  • sub-item2

Could you please help me to fix this issue.

@zoehneto
Copy link
Collaborator

zoehneto commented Nov 8, 2016

I had a quick look at it and it seems that to fix this issue one needs to implement \ilvl from the 'Bullets and Numbering' section of the rtf spec. The easiest way would probably be to add a new char format handler for the control word which applies a margin to the relevant pap (see code starting at line 750 of rtf.js).

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

1 participant