1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

WIP vendored dep upgrades

This commit is contained in:
Harvey Kandola 2018-01-19 11:36:38 +00:00
parent 5f59e95495
commit 6409ad0d63
190 changed files with 64265 additions and 109666 deletions

View file

@ -140,3 +140,13 @@ func Levelize(pages []Page) {
prevLevel = currLevel
}
}
// Sequenize will re-generate page sequence numbers for a document
func Sequenize(p []Page) {
var seq float64
seq = 2048
for i := range p {
p[i].Sequence = seq
seq = seq * 2
}
}