diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2019-06-10 23:47:01 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2019-06-10 23:47:01 +0200 |
commit | add2cac586d29c574ae4ba12a2252dce0694f1d4 (patch) | |
tree | ce243fe248d16ceb2a4a9eba17e0adee79a1ddaa /lisp/svg.el | |
parent | fdd1b3e02097966e7ffe8065f6e3d27f5f540d0a (diff) | |
download | emacs-add2cac586d29c574ae4ba12a2252dce0694f1d4.tar.gz |
lisp/*.el: Minor docstring fixes
* lisp/subr.el (definition-prefixes): Reflow docstring.
* lisp/svg.el (svg-create): Doc fix to allow arg higlighting.
(svg-gradient, svg-rectangle): Improve docstring formatting.
Diffstat (limited to 'lisp/svg.el')
-rw-r--r-- | lisp/svg.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/svg.el b/lisp/svg.el index 3384f1dbc02..0399c424c85 100644 --- a/lisp/svg.el +++ b/lisp/svg.el @@ -30,7 +30,7 @@ (eval-when-compile (require 'subr-x)) (defun svg-create (width height &rest args) - "Create a new, empty SVG image with dimensions WIDTHxHEIGHT. + "Create a new, empty SVG image with dimensions WIDTH x HEIGHT. ARGS can be used to provide `stroke' and `stroke-width' parameters to any further elements added." (dom-node 'svg @@ -42,8 +42,8 @@ any further elements added." (defun svg-gradient (svg id type stops) "Add a gradient with ID to SVG. -TYPE is `linear' or `radial'. STOPS is a list of percentage/color -pairs." +TYPE is `linear' or `radial'. +STOPS is a list of percentage/color pairs." (svg--def svg (apply @@ -66,9 +66,9 @@ pairs." "Create a rectangle on SVG, starting at position X/Y, of WIDTH/HEIGHT. ARGS is a plist of modifiers. Possible values are -:stroke-width PIXELS. The line width. -:stroke-color COLOR. The line color. -:gradient ID. The gradient ID to use." +:stroke-width PIXELS The line width. +:stroke-color COLOR The line color. +:gradient ID The gradient ID to use." (svg--append svg (dom-node 'rect |