diff --git a/taskwiki/regexp.py b/taskwiki/regexp.py index e2c7b27..6ff1b67 100644 --- a/taskwiki/regexp.py +++ b/taskwiki/regexp.py @@ -53,11 +53,14 @@ GENERIC_VIEWPORT = re.compile( '[=]+' # Heading begging '(?P[^=\|]*)' # Name of the viewport, all before the | sign '\|' # Colon - '(?P[^=\|]*)' # Filter + '(?P[^=#\|]*)' # Filter '(' # Optional defaults '\|' # Colon - '(?P[^=\|]*)' # Default attrs + '(?P[^=#\|]*)' # Default attrs ')?' + '\s*' # Any whitespace + '(#(?P[A-Z]))?' # Optional source indicator + '\s*' # Any whitespace '[=]+' # Header ending )