Skip to content

Commit

Permalink
Rename cmd DefineMasterpage from DefinePagetype
Browse files Browse the repository at this point in the history
  • Loading branch information
pgundlach committed May 10, 2022
1 parent 10206b0 commit 9af767a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func init() {
"Copy-of": cmdCopyof,
"DefineFontfamily": cmdDefineFontfamily,
"DefineFontsize": cmdDefineFontsize,
"DefinePagetype": cmdDefinePagetype,
"DefineMasterpage": cmdDefineMasterpage,
"Element": cmdElement,
"ForAll": cmdForall,
"Group": cmdGroup,
Expand Down Expand Up @@ -284,7 +284,7 @@ func cmdDefineFontsize(xd *xtsDocument, layoutelt *goxml.Element) (xpath.Sequenc
return nil, nil
}

func cmdDefinePagetype(xd *xtsDocument, layoutelt *goxml.Element) (xpath.Sequence, error) {
func cmdDefineMasterpage(xd *xtsDocument, layoutelt *goxml.Element) (xpath.Sequence, error) {
var err error
attValues := &struct {
Margin string `sdxml:"mustexist"`
Expand Down Expand Up @@ -534,7 +534,7 @@ func cmdMessage(xd *xtsDocument, layoutelt *goxml.Element) (xpath.Sequence, erro
return nil, err
}
}
bag.Logger.Infof("Message (line %d): %s", layoutelt.Line, eval)
bag.Logger.Infof("Message (line %d): %s", layoutelt.Line, eval.Stringvalue())
return nil, nil
}

Expand Down
6 changes: 3 additions & 3 deletions doc/commands-xml/commands.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<define name="Toplevel">
<optional><cmd name="DefineFontfamily"/></optional>
<optional><cmd name="DefineFontsize"/></optional>
<optional><cmd name="DefinePagetype"/></optional>
<optional><cmd name="DefineMasterpage"/></optional>
<optional><cmd name="LoadFontfile"/></optional>
<optional><cmd name="Options"/></optional>
<optional><cmd name="Pageformat"/></optional>
Expand Down Expand Up @@ -878,7 +878,7 @@
</Record>
]]></listing>
</example>
<seealso><cmd name="DefinePagetype"/></seealso>
<seealso><cmd name="DefineMasterpage"/></seealso>
</command>


Expand Down Expand Up @@ -1129,7 +1129,7 @@
</command>


<command en="DefinePagetype">
<command en="DefineMasterpage">
<description xml:lang="en">
<para>Define a master page. A master page is chosen depending on the criterion given with the attribute »test«.</para>
</description>
Expand Down

0 comments on commit 9af767a

Please sign in to comment.