1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:04:44 -07:00
go/present
Dmitri Shuralyov b2104f82a9 present: check if too few arguments to image, iframe, or video
Previously, using incorrect syntax for one of image, iframe, or video
functions caused an index out of range panic. Add a check to prevent
the panic and return an error instead.

Fixes golang/go#35142

Change-Id: Ifffb4cc5daded5331d617a3db7cad84e37abadc8
Reviewed-on: https://go-review.googlesource.com/c/tools/+/203477
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2019-10-26 03:49:45 +00:00
..
args.go all: replace reference to plan9.bell-labs.com with 9p.io 2019-08-26 06:06:29 +00:00
caption.go go.tools/present: add support for figure captions 2014-07-15 08:23:16 -07:00
code_test.go x/tools/present: remove unused code 2017-03-01 14:50:10 +00:00
code.go x/tools/present: remove unused code 2017-03-01 14:50:10 +00:00
doc.go present: remove mention of non-existing emphasis toggle 2018-10-22 17:16:10 +00:00
html.go go.tools/godoc/present: move present package from go.talks 2013-09-19 10:55:46 +10:00
iframe.go present: check if too few arguments to image, iframe, or video 2019-10-26 03:49:45 +00:00
image.go present: check if too few arguments to image, iframe, or video 2019-10-26 03:49:45 +00:00
link_test.go go.tools/godoc/present: move present package from go.talks 2013-09-19 10:55:46 +10:00
link.go x/tools/present: fix element number check 2017-06-08 00:01:16 +00:00
parse.go cmd/present: display slide numbers 2018-04-13 16:54:21 +00:00
style_test.go present: allow markup inside punctuation connected to other text 2016-12-01 05:16:25 +00:00
style.go x/tools: simplify and format code 2017-02-28 14:15:42 +00:00
video.go present: check if too few arguments to image, iframe, or video 2019-10-26 03:49:45 +00:00