[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 88b32d5 24/72: hydra.el (hydra--hint): Add exception

From: Oleh Krehel
Subject: [elpa] master 88b32d5 24/72: hydra.el (hydra--hint): Add exception
Date: Fri, 06 Mar 2015 13:04:08 +0000

branch: master
commit 88b32d50dcc72e717fbc2868399626a96d967344
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    hydra.el (hydra--hint): Add exception
    * hydra.el (hydra--hint): Don't add semicolon to docstrings that start
      with a newline.
 hydra.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/hydra.el b/hydra.el
index a944723..342aee5 100644
--- a/hydra.el
+++ b/hydra.el
@@ -302,7 +302,9 @@ NAME, BODY, DOCSTRING and HEADS are parameters to 
                          (and (stringp (cl-caddr h)) (cl-caddr h))))
-    (format "%s: %s."
+    (format (if (eq ?\n (aref docstring 0))
+                "%s%s"
+              "%s: %s.")
              (lambda (x)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]