Clean-up prompts from dispass a little
Remove any leading and trailing whitespace and add a single space.
This commit is contained in:
parent
312e06ecab
commit
32040e08a0
1 changed files with 6 additions and 2 deletions
|
@ -172,8 +172,12 @@ an eye out for LABEL."
|
||||||
`(lambda (proc string)
|
`(lambda (proc string)
|
||||||
"Process STRING coming from PROC."
|
"Process STRING coming from PROC."
|
||||||
(cond ((string-match "^\\(Password[^:]*\\|Again\\): ?$" string)
|
(cond ((string-match "^\\(Password[^:]*\\|Again\\): ?$" string)
|
||||||
(process-send-string proc
|
(process-send-string
|
||||||
(concat (read-passwd string nil) "\n")))
|
proc
|
||||||
|
(concat (read-passwd
|
||||||
|
(concat (replace-regexp-in-string
|
||||||
|
"^[ \t\n]+\\|[ \t\n]+$" "" string) " ")
|
||||||
|
nil) "\n")))
|
||||||
|
|
||||||
((string-match (concat "^[ \t]*" ,label "[ \t]*\\(.+\\)$")
|
((string-match (concat "^[ \t]*" ,label "[ \t]*\\(.+\\)$")
|
||||||
string)
|
string)
|
||||||
|
|
Loading…
Reference in a new issue