From b553f01b2aa42c5dc31a5db9f579efee8e1b76d5 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 18 Jun 2016 11:14:50 +0200 Subject: [PATCH] Allow long lines of text by resetting number of spaces to 0 when needed --- include/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions b/include/functions index 6fb792d5..ba7360a5 100644 --- a/include/functions +++ b/include/functions @@ -409,6 +409,7 @@ LINESIZE=`echo "${TEXT}" | wc -m | tr -d ' '` if [ ${SHOWDEBUG} -eq 1 ]; then DEBUGTEXT=" [${PURPLE}DEBUG${NORMAL}]"; else DEBUGTEXT=""; fi if [ ${INDENT} -gt 0 ]; then SPACES=$((62 - INDENT - LINESIZE)); fi + if [ ${SPACES} -lt 0 ]; then SPACES=0; fi if [ ${CRONJOB} -eq 0 ]; then # Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'. if [ "${ECHOCMD}" = "" ]; then ECHOCMD="echo"; fi