Added test for document meta

This commit is contained in:
Veronica K. B. Olsen
2020-09-10 22:40:45 +02:00
parent 8603c59815
commit 61b9567e3a
2 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -230,13 +230,13 @@ class NWDoc():
for aClass in nwItemClass:
if theMeta.startswith(aClass.name):
theClass = aClass
theMeta = theMeta.lstrip(aClass.name+":")
theMeta = theMeta[len(aClass.name)+1:]
theLayout = nwItemLayout.NO_LAYOUT
for aLayout in nwItemLayout:
if theMeta.startswith(aLayout.name):
theLayout = aLayout
theMeta = theMeta.lstrip(aLayout.name+":")
theMeta = theMeta[len(aLayout.name)+1:]
return theMeta, thePath, theClass, theLayout