Clean up more wuffs-c output (before clang-format)

This commit is contained in:
Nigel Tao committed 2020-06-03 23:14:55 +10:00
1 parent 3efb204f4e
commit 4402c1c7c0
4 files changed
+95 -71

No files matched your search

+2 -1
View File
@@ -117,7 +117,8 @@ func genBase(out *bytes.Buffer) error {
}
if i := bytes.Index(in, []byte("\n\n")); i >= 0 {
if len(copyright) == 0 {
copyright = in[:i+2]
// Take only one of the two trailing '\n's.
copyright = in[:i+1]
}
in = in[i+2:]
}