Gitea form post method now takes empty descriptions into account.

If the description box is empty, new lines are not added between the last line
and the marker data. If empty description boxes are eventually made possible, this
will allow for that.
This commit is contained in:
Jamie Greunbaum 2024-06-09 16:49:03 -04:00
parent 30152c45cc
commit d20e47b5dc

View File

@ -154,10 +154,13 @@ func __send_form_data_thread(data:Dictionary, map_name:String, bug_position:Vect
var post_data : Dictionary = {
"title": data["title"],
"body": data["body"] + "\n\n" + JSON.stringify(marker_data, "", false),
"body": data["body"],
"labels": labels
}
if not post_data["body"].is_empty(): post_data["body"] += "\n\n"
post_data["body"] += JSON.stringify(marker_data, "", false)
# Post issue to Gitea
api_url = __build_url_string("issues")
var post_data_string : String = JSON.stringify(post_data)