forked from sensorflo/adoc-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes sensorflo#17 by checking that 2-line titles have the same number of under characters as the title text and doesn't look like the start of an attribute block. Also check when (adoc-title-descriptor) returns nil, which it will at times when the regexes match but more stringent tests fail, a nil list will be inserted into the imenu list, which it doesn't like much, so this condition is checked for as well. This also add a strict mode to adoc-title-descriptor so it can work for some of the sloppy editing scenarios needed. Also make it conform to asciidoc standard of allowing as many as two character difference in two line titles, in strict mode.
- Loading branch information
1 parent
2c4847d
commit 183e983
Showing
2 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters