diff --git a/present/caption.go b/present/caption.go index 0fa2656f08..64a52687fa 100644 --- a/present/caption.go +++ b/present/caption.go @@ -18,7 +18,7 @@ type Caption struct { func (c Caption) PresentCmd() string { return c.Cmd } func (c Caption) TemplateName() string { return "caption" } -func parseCaption(_ *Context, _ string, _ int, text string) (Elem, error) { - text = strings.TrimSpace(strings.TrimPrefix(text, ".caption")) - return Caption{text, text}, nil +func parseCaption(_ *Context, _ string, _ int, cmd string) (Elem, error) { + text := strings.TrimSpace(strings.TrimPrefix(cmd, ".caption")) + return Caption{cmd, text}, nil }