diff options
author | Leon Rische <leon.rische@me.com> | 2020-09-23 12:20:24 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-09-23 12:20:24 +0200 |
commit | a6fce73ca84a9f8bea611cbd263d7f3617df7223 (patch) | |
tree | d91a513b12401f2cf76677b208ea89fe966b196d | |
parent | 067d5c160af79b76cd9dd0ec41fa2dae9c7d9fbb (diff) |
Ensure title & filetags are at line beginning
-rw-r--r-- | awk/index.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/awk/index.awk b/awk/index.awk index 99b0ec7..eacb659 100644 --- a/awk/index.awk +++ b/awk/index.awk @@ -46,7 +46,7 @@ ENDFILE { ## File Tags -match($0, /#\+FILETAGS:[ \t]+(.*)/, a) { +match($0, /^#\+FILETAGS:[ \t]+(.*)/, a) { # Combine tags to handle multiple FILETAGS lines parent_tags[0] = combine_tags(a[1], parent_tags[0]); next; @@ -54,7 +54,7 @@ match($0, /#\+FILETAGS:[ \t]+(.*)/, a) { ## File Title -match($0, /#\+TITLE:[ \t]+(.*)/, a) { +match($0, /^#\+TITLE:[ \t]+(.*)/, a) { # Combine tags to handle multiple FILETAGS lines file_title = a[1] next; |