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

fix tabs in list indentation #101

Closed
derari opened this issue Feb 4, 2016 · 0 comments
Closed

fix tabs in list indentation #101

derari opened this issue Feb 4, 2016 · 0 comments

Comments

@derari
Copy link

derari commented Feb 4, 2016

There seems to be a bug when mixing tabs and spaces for indentation. According to the spec,

in contexts where indentation is significant for the document’s structure, tabs behave as if they were replaced by spaces with a tab stop of 4 characters.

When I try

 - 1 space
   - 3 spaces
     - 5 spaces
     - tab + space

the result is equivalent to

  • 1 space
    • 3 spaces
      • 5 spaces
    • tab + space

but when I change the order of the last two lines

 - 1 space
   - 3 spaces
     - tab + space
     - 5 spaces

I get

  • 1 space
    • 3 spaces
    • tab + space
    • 5 spaces

Not only does it completely change the structure of the list depending on the order of the items, but both cases differ from what I would have expected and what I see in the editor (with tabstop=4):

  • 1 space
    • 3 spaces
      • tab + space (or 5 spaces)
      • 5 spaces (or tab + space)
@jgm jgm closed this as completed in 555472c Feb 5, 2016
jgm added a commit to commonmark/commonmark-spec that referenced this issue Feb 6, 2016
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