Skip to content

Commit

Permalink
add text if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Mar 1, 2024
1 parent 04901a1 commit e6d97fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-package/build-functions/functions_build_code_and_doc.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ build_fn_doc <- function(alg, arguments, outputs){

description_outputs <- glue::glue_collapse(description_outputs, sep = "\n")

if (stringr::str_length(description_outputs) == 0) {
description_arguments = "No output description provided."
}

fun_help_tmpl <- readr::read_file(here::here("build-package", "templates", "qgis_help.R"))

glue::glue(fun_help_tmpl)
Expand Down

0 comments on commit e6d97fb

Please sign in to comment.