Skip to content

Commit a1880c0

Browse files
authored
Merge pull request #180 from desultory/dev
add newline to printf lines where needed
2 parents fd36611 + 445e935 commit a1880c0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ugrd/base/base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "desultory"
2-
__version__ = "6.2.0"
2+
__version__ = "6.2.1"
33

44
from pathlib import Path
55

@@ -207,11 +207,11 @@ def prompt_user(self) -> list[str]:
207207
"if plymouth --ping; then",
208208
' plymouth display-message --text="$prompt"',
209209
"else",
210-
r' printf "\e[1;35m *\e[0m $prompt"',
210+
r' printf "\e[1;35m *\e[0m $prompt\n"',
211211
"fi",
212212
]
213213
else:
214-
output += [r'printf "\e[1;35m *\e[0m $prompt"']
214+
output += [r'printf "\e[1;35m *\e[0m $prompt\n"']
215215
output += [
216216
'if [ -n "$2" ]; then',
217217
' read -t "$2" -rs && return 0 || return 1',
@@ -266,7 +266,7 @@ def edebug(self) -> str:
266266
if [ "$(readvar debug)" != "1" ]; then
267267
return
268268
fi
269-
printf "\e[1;34m *\e[0m ${*}"
269+
printf "\e[1;34m *\e[0m ${*}\n"
270270
"""
271271

272272

@@ -282,7 +282,7 @@ def einfo(self) -> list[str]:
282282
else:
283283
output = []
284284

285-
output += ["if check_var quiet; then", " return", "fi", r'printf "\e[1;32m *\e[0m ${*}"']
285+
output += ["if check_var quiet; then", " return", "fi", r'printf "\e[1;32m *\e[0m ${*}\n"']
286286
return output
287287

288288

@@ -304,7 +304,7 @@ def ewarn(self) -> list[str]:
304304
"if check_var quiet; then",
305305
" return",
306306
"fi",
307-
r'printf "\e[1;33m *\e[0m ${*}"',
307+
r'printf "\e[1;33m *\e[0m ${*}\n"',
308308
]
309309
return output
310310

@@ -317,7 +317,7 @@ def eerror(self) -> str:
317317
plymouth display-message --text="Error: ${*}"
318318
return
319319
fi
320-
printf "\e[1;31m *\e[0m ${*}"
320+
printf "\e[1;31m *\e[0m ${*}\n"
321321
"""
322322
else:
323-
return r'printf "\e[1;31m *\e[0m ${*}"'
323+
return r'printf "\e[1;31m *\e[0m ${*}\n"'

0 commit comments

Comments
 (0)