Avoid false-positives when detecting headlines.
A space should be present after the leading '*' to avoid detection of lines that start with bolded text.
This commit is contained in:
parent
7a9cff57f9
commit
eacbcce376
@ -53,7 +53,7 @@ DEFAULT_TODO_KEYWORDS = ["TODO"]
|
|||||||
DEFAULT_DONE_KEYWORDS = ["DONE"]
|
DEFAULT_DONE_KEYWORDS = ["DONE"]
|
||||||
|
|
||||||
HEADLINE_TAGS_RE = re.compile(r"((:(\w|[0-9_@#%])+)+:)\s*$")
|
HEADLINE_TAGS_RE = re.compile(r"((:(\w|[0-9_@#%])+)+:)\s*$")
|
||||||
HEADLINE_RE = re.compile(r"^(?P<stars>\*+)(?P<spacing>\s*)(?P<line>.*?)$")
|
HEADLINE_RE = re.compile(r"^(?P<stars>\*+)(?P<spacing>\s+)(?P<line>.*?)$")
|
||||||
KEYWORDS_RE = re.compile(
|
KEYWORDS_RE = re.compile(
|
||||||
r"^(?P<indentation>\s*)#\+(?P<key>[^:\[]+)(\[(?P<options>[^\]]*)\])?:(?P<spacing>\s*)(?P<value>.*)$"
|
r"^(?P<indentation>\s*)#\+(?P<key>[^:\[]+)(\[(?P<options>[^\]]*)\])?:(?P<spacing>\s*)(?P<value>.*)$"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user