Skip to content

Commit 14ee3f9

Browse files
committed
Change spacing and formatting slightly, re-render docx.
1 parent 66e74c3 commit 14ee3f9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

resume.docx

4 Bytes
Binary file not shown.

scripts/resume/go-print-docx/cmd/render.go

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111

1212
"os"
1313

14+
"github.com/unidoc/unioffice/color"
1415
"github.com/unidoc/unioffice/common/license"
1516
"github.com/unidoc/unioffice/document"
1617
"github.com/unidoc/unioffice/measurement"
@@ -62,7 +63,16 @@ func (r *Render) addHeading(doc *document.Document, text string, level int) docu
6263
} else {
6364
para.SetStyle("Title")
6465
}
65-
r.addRun(para, text, r.levelToSize(level))
66+
run := r.addRun(para, text, r.levelToSize(level))
67+
68+
if level == 1 {
69+
run.Properties().SetUnderline(wml.ST_UnderlineSingle, color.Auto)
70+
}
71+
72+
if level == 2 {
73+
run.Properties().SetBold(true)
74+
}
75+
6676
return para
6777
}
6878

0 commit comments

Comments
 (0)