Skip to content

Indent detection doesn't handle lists well #103

@jmdevin

Description

@jmdevin

The body of a list item frequently extends for multiple lines. With n in 'formatoptions', the continuation lines of the body are not indented according to 'tabstop' or 'shiftwidth'; they are normally indented far enough to line up with the first character of the first line of the item not including the list header. For example:

List

    1 Notes

    2 Some notes that span multiple lines some notes that span multiple lines
      some notes that span multiple lines some notes that span multiple lines
      some notes that span multiple lines some notes that span multiple lines

This leads to lines that are indented with a value other than a multiple of 'tabstop' . Sleuth then sets 'tabstop' to an incorrect value (it sets the example above to 2, when it should be 4).

It would be good if sleuth ignored list item bodies when they extended onto additional lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions