Go: enable multiple updates in a sequence
This is not something anyone should do, but let's do things correctly.
This commit is contained in:
parent
ff7de4b141
commit
32e9acfa77
@ -1271,6 +1271,9 @@ func (u *Updater) FlushUpdates() {
|
||||
|
||||
fmt.Fprintf(buf, "\nstartxref\n%d\n%%%%EOF\n", startXref)
|
||||
u.Document = buf.Bytes()
|
||||
u.updated = make(map[uint]struct{})
|
||||
|
||||
u.Trailer["Prev"] = NewNumeric(float64(startXref))
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user