From owner-svn-src-all@FreeBSD.ORG Fri Oct 26 01:48:00 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D195EB7; Fri, 26 Oct 2012 01:48:00 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2E9F68FC08; Fri, 26 Oct 2012 01:48:00 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9Q1m0Fh095288; Fri, 26 Oct 2012 01:48:00 GMT (envelope-from dteske@svn.freebsd.org) Received: (from dteske@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9Q1lx52095278; Fri, 26 Oct 2012 01:47:59 GMT (envelope-from dteske@svn.freebsd.org) Message-Id: <201210260147.q9Q1lx52095278@svn.freebsd.org> From: Devin Teske Date: Fri, 26 Oct 2012 01:47:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242115 - head/usr.sbin/bsdconfig/share X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 01:48:00 -0000 Author: dteske Date: Fri Oct 26 01:47:59 2012 New Revision: 242115 URL: http://svn.freebsd.org/changeset/base/242115 Log: Tighten-up displays that use a NULL prompt (e.g., networking and usermgmt). Approved by: adrian (co-mentor) (implicit) Modified: head/usr.sbin/bsdconfig/share/dialog.subr Modified: head/usr.sbin/bsdconfig/share/dialog.subr ============================================================================== --- head/usr.sbin/bsdconfig/share/dialog.subr Fri Oct 26 00:46:09 2012 (r242114) +++ head/usr.sbin/bsdconfig/share/dialog.subr Fri Oct 26 01:47:59 2012 (r242115) @@ -272,7 +272,7 @@ f_dialog_infobox_size() # # Set height based on number of rows in prompt # - height=$( echo "$prompt" | f_number_of_lines ) + height=$( echo -n "$prompt" | f_number_of_lines ) height=$(( $height + 2 )) #