Skip to content

Commit

Permalink
Fix extraction of multiple paragraphs in corpus description
Browse files Browse the repository at this point in the history
  • Loading branch information
cmil committed Jan 7, 2024
1 parent f20e12a commit 2c0d469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/util.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ declare function dutil:get-corpus-info(
let $projectDesc := $header/tei:encodingDesc/tei:projectDesc
let $licence := $header//tei:availability/tei:licence
let $description := if ($projectDesc) then (
for $p in $projectDesc/tei:p return local:markdown($p)
let $paras := for $p in $projectDesc/tei:p return local:markdown($p)
return string-join($paras, "

")
) else ()
return if ($header) then (
map:merge((
Expand Down

0 comments on commit 2c0d469

Please sign in to comment.