mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-08 17:20:26 +08:00
shrink xmlns
This commit is contained in:
@@ -6,13 +6,13 @@ import (
|
||||
)
|
||||
|
||||
type ParagraphChild struct {
|
||||
Link *Hyperlink `xml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main hyperlink,omitempty"`
|
||||
Run *Run `xml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main r,omitempty"`
|
||||
Properties *RunProperties `xml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main rPr,omitempty"`
|
||||
Link *Hyperlink `xml:"w:hyperlink,omitempty"`
|
||||
Run *Run `xml:"w:r,omitempty"`
|
||||
Properties *RunProperties `xml:"w:rPr,omitempty"`
|
||||
}
|
||||
|
||||
type Paragraph struct {
|
||||
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main p"`
|
||||
XMLName xml.Name `xml:"w:p,omitempty"`
|
||||
Children []ParagraphChild // Children will generate an unnecessary tag <Children> ... </Children> and we skip it by a self-defined xml.Marshaler
|
||||
|
||||
file *Docx
|
||||
|
||||
Reference in New Issue
Block a user