GoPLS Viewer

Home|gopls/present/caption.go
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package present
6
7import "strings"
8
9func init() {
10    Register("caption"parseCaption)
11}
12
13type Caption struct {
14    Cmd  string // original command from present source
15    Text string
16}
17
18func (c CaptionPresentCmd() string   { return c.Cmd }
19func (c CaptionTemplateName() string { return "caption" }
20
21func parseCaption(_ *Context_ string_ intcmd string) (Elemerror) {
22    text := strings.TrimSpace(strings.TrimPrefix(cmd".caption"))
23    return Caption{cmdtext}, nil
24}
25
MembersX
init
Caption.Text
Caption.PresentCmd
Caption.TemplateName.c
Caption.TemplateName
parseCaption.cmd
strings
Caption
Caption.Cmd
Caption.PresentCmd.c
parseCaption
parseCaption.text
Members
X