simpler while test
This commit is contained in:
@@ -150,14 +150,12 @@
|
|||||||
"Return the value of the key whose value begins at position START.
|
"Return the value of the key whose value begins at position START.
|
||||||
Lines ending in a backslash are concatenated with the next
|
Lines ending in a backslash are concatenated with the next
|
||||||
according to systemd.unit(5)."
|
according to systemd.unit(5)."
|
||||||
(let ((break "\\\\\n")
|
(let (end)
|
||||||
end)
|
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(while (progn (goto-char (1- (line-end-position)))
|
(while (= (char-before (line-end-position)) ?\\)
|
||||||
(looking-at break))
|
|
||||||
(forward-line))
|
(forward-line))
|
||||||
(setq end (line-end-position))
|
(setq end (line-end-position))
|
||||||
(replace-regexp-in-string break " " (buffer-substring start end)))))
|
(replace-regexp-in-string "\\\\\n" " " (buffer-substring start end)))))
|
||||||
|
|
||||||
(defun systemd-doc-find ()
|
(defun systemd-doc-find ()
|
||||||
"Find the value of the unit's “Documentation” keys.
|
"Find the value of the unit's “Documentation” keys.
|
||||||
|
|||||||
Reference in New Issue
Block a user