From faeeb79059a06630c7362022149017d3de135a71 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Thu, 22 Sep 2022 11:11:01 +0200
Subject: [PATCH] generalize title extraction

---
 library.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/library.py b/library.py
index 25dbd8f..57fd9ce 100644
--- a/library.py
+++ b/library.py
@@ -91,7 +91,7 @@ def get_title(localroot, root, file):
             qms_yml = True
         else:
             print("QMS document is not formatted properly.")
-    elif "handbook" in root:
+    else:
         os.chdir(root)
         with open(file, 'r') as f:
             for line in f:
@@ -100,8 +100,6 @@ def get_title(localroot, root, file):
                     break
         # change back to the local root
         os.chdir(localroot)
-    else:
-        title = save_tag(localroot, root, file, "title")
 
     # remove empty line from title
     title = title.replace("# ", "")
-- 
GitLab