From a6fce73ca84a9f8bea611cbd263d7f3617df7223 Mon Sep 17 00:00:00 2001 From: Leon Rische Date: Wed, 23 Sep 2020 12:20:24 +0200 Subject: Ensure title & filetags are at line beginning --- awk/index.awk | 4 ++-- 1 file 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; -- cgit v1.2.3