Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit b9dca43

Browse files
committed
[[ Docs ]] Fix an issue with docs merge
1 parent efcb3bf commit b9dca43

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

ide-support/revdocsparser.livecodescript

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,13 @@ function revDocsParseDocFileToLibraryArray pFile, pLibraryName, pAuthor
12871287
end revDocsParseDocFileToLibraryArray
12881288

12891289
function revDocsParseDocTextToLibraryArray pFile, pText, pLibraryName, pAuthor
1290-
local tOverridesA
1291-
put pLibraryName into tOverridesA["display name"]
1292-
put pAuthor into tOverridesA["author"]
1290+
local tOverridesA
1291+
if pLibraryName is not empty then
1292+
put pLibraryName into tOverridesA["display name"]
1293+
end if
1294+
if pAuthor is not empty then
1295+
put pAuthor into tOverridesA["author"]
1296+
end if
12931297
return revDocsParseDocText(pText, pFile, "", tOverridesA)
12941298
end revDocsParseDocTextToLibraryArray
12951299

@@ -1370,12 +1374,12 @@ function revDocsParseDocText pText, pFilename, pDefaults, pOverrides
13701374
switch it
13711375
case "Name"
13721376
case empty
1373-
exit repeat
1374-
case "Title"
1377+
exit repeat
13751378
case "Library"
13761379
put tElementsA[tStartNum]["content"] into tParsedA["library"]
13771380
add 1 to tStartNum
13781381
break
1382+
case "Title"
13791383
case "Summary"
13801384
case "Description"
13811385
case "Author"

0 commit comments

Comments
 (0)