From 993f012777bbd077a10fb5d88ef9368f2297a3e2 Mon Sep 17 00:00:00 2001 From: eblondel Date: Sat, 1 Jun 2024 17:59:31 +0200 Subject: [PATCH] add basic br whitelisted html tag for zenodo abstract --- inst/actions/zen4R_deposit_record.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/actions/zen4R_deposit_record.R b/inst/actions/zen4R_deposit_record.R index 999bf27..5bbe916 100644 --- a/inst/actions/zen4R_deposit_record.R +++ b/inst/actions/zen4R_deposit_record.R @@ -182,7 +182,7 @@ function(action, entity, config){ if(!is.null(entity$titles[["alternative"]])){ zenodo_metadata$addAdditionalTitle(entity$titles[["alternative"]], type = "alternative-title") } - abstract = gsub("\n", "<\br>", entity$descriptions[["abstract"]]) + abstract = gsub("\n", "
", entity$descriptions[["abstract"]]) zenodo_metadata$setDescription(abstract) if(!is.null(entity$descriptions[["info"]])){ zenodo_metadata$addAdditionalDescription(entity$descriptions[["info"]], type = "technical-info")