aboutsummaryrefslogtreecommitdiff
path: root/document.go
diff options
context:
space:
mode:
Diffstat (limited to 'document.go')
-rw-r--r--document.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/document.go b/document.go
index 2b1cd91..97c8171 100644
--- a/document.go
+++ b/document.go
@@ -260,6 +260,22 @@ func (doc *Document) generateClasses() {
}
}
+func (doc *Document) haveHeader() bool {
+ if len(doc.Authors) > 0 {
+ return true
+ }
+ if len(doc.Revision.Number) > 0 {
+ return true
+ }
+ if len(doc.Revision.Date) > 0 {
+ return true
+ }
+ if len(doc.Revision.Remark) > 0 {
+ return true
+ }
+ return false
+}
+
func (doc *Document) toHTMLBody(buf *bytes.Buffer, withHeaderFooter bool) {
var (
ok bool