From nobody Sun Apr 03 20:27:24 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6AFBD1A59987; Sun, 3 Apr 2022 20:27:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KWlnm2Y8Pz3Phs; Sun, 3 Apr 2022 20:27:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649017644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s4Ci9XiOel2kH+9UFGLdlFMDkPsGr2zFrRHTw1/hFXQ=; b=mLgKUPRy7VITqAWwXYB8twgl829RCcQOLb0sjqEKx+I7Gt6Uw1S94Wf9fWIPNfcQ6Twa9l oRw10OaB6uNOVAGnfy7FDAtFpIGdfcDmPiFdGnFE0tm5Lkv337krDcRym2t/qc+awN5aGl glOnhHGGTMvp4XN+5zRqjEkOuWhUBNc20q3F/Zj/to9/UpLGwwsIiZso6hos0E+VqZ9moM H67x4OHCPxOGSxIJWbPbLjH9KzqqA03sUHly1touTX3fFeN4IcE0N9kGc/DOrok+XpE8fS vZACSaSzqpV7N04R/cl8bFFgfGyCnEdof/oRmk2td3WtctBgmNDKNJBkctPmKw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 33E9024164; Sun, 3 Apr 2022 20:27:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 233KROaL000735; Sun, 3 Apr 2022 20:27:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 233KRO7P000734; Sun, 3 Apr 2022 20:27:24 GMT (envelope-from git) Date: Sun, 3 Apr 2022 20:27:24 GMT Message-Id: <202204032027.233KRO7P000734@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alfonso S. Siciliano" Subject: git: 9225c909fbc1 - main - bsddialog(1): Improve --hline (help subtitle) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asiciliano X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9225c909fbc1478a1803e647d89f2e63cbac98f2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649017644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s4Ci9XiOel2kH+9UFGLdlFMDkPsGr2zFrRHTw1/hFXQ=; b=A7dsLbApeFLLjw/6sYcVJwzEjJuMMePsaDNQVq4wWjEhA+sRuUzXxcXc3NGAvJl0UxM2XG vYy1jH7FDuyZdZlmkrIf5MBHoEThf75RhcelCzXnhbYmPa2hfDFTqrSlwUFGDqJE5vQT0u UumEnxJEiQxYKT1BbR1FJL3qv2mVdcy4GWyluKPpQNE8coX2hqBknVEjs9yRQBFz/JZiuP lkoV74efZB8Dzt4MP9kWPdraCptGV5BA+q99jjIRGDAXURt6IJ4KSv8z8l9oMMvFGJMjzy bnV5+fIAJfQsxw1iGOvviV+SlrxK8DfekbdcagwkZx4GOQzR3TG+0aagDMV95Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649017644; a=rsa-sha256; cv=none; b=bcLd2GgIMvaXHY9+lEByqNSXiWzhlJcOiSjfAU2EdT64jtkWXQtInxUcPAizeGId1d6ktj lEzTlWfDhJo+scZjGi02WIucfvyi5h3ps//XF54ckEsaV0iPR07oIHdMfK1DfAJE0zMsqo gDZI9OiqRwlhEgKNDMAM7YGmFKYHeReDJR2GQZzA1zC1FA5vCqV0f8LMcGRiYxZYfZo6ql 2uogcH4w3RvAste3lDPZxsOzIiuWWVRCfbhw7Hk20dApTuuxP4hJIIDTRnOhp9iM6zQ4JJ j8O+dCZJkaMdHtHcBRV5vKLdlMVzOmoiC0NtaUfboqF68fxi8mVCXpYlcsLwuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by asiciliano: URL: https://cgit.FreeBSD.org/src/commit/?id=9225c909fbc1478a1803e647d89f2e63cbac98f2 commit 9225c909fbc1478a1803e647d89f2e63cbac98f2 Author: Alfonso S. Siciliano AuthorDate: 2022-04-03 20:22:52 +0000 Commit: Alfonso S. Siciliano CommitDate: 2022-04-03 20:26:50 +0000 bsddialog(1): Improve --hline (help subtitle) Improvement for bsdconfig(8): avoid to draw delimiters (or spaces) on the bottom line if the argument of --hline is an empty string. --- contrib/bsddialog/bsddialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/bsddialog/bsddialog.c b/contrib/bsddialog/bsddialog.c index a902d751dab0..d84df4b494d9 100644 --- a/contrib/bsddialog/bsddialog.c +++ b/contrib/bsddialog/bsddialog.c @@ -454,7 +454,8 @@ int main(int argc, char *argv[argc]) conf.key.f1_file = optarg; break; case HLINE: - conf.bottomtitle = optarg; + if (strlen(optarg) > 0) + conf.bottomtitle = optarg; break; case HMSG: conf.key.f1_message = optarg;