mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Remove After editing... run "go generate" lines
This commit is contained in:
1 parent
bdfee5053c
commit
1d19157668
31 files changed
-68
No files matched your search
@@ -26,11 +26,6 @@ type EmbeddedString string
|
||||
// Trim removes the leading "Copyright etc" boilerplate.
|
||||
func (e EmbeddedString) Trim() string {
|
||||
s := string(e)
|
||||
if strings.HasPrefix(s, "// After editing ") {
|
||||
if i := strings.Index(s, "\n\n"); i >= 0 {
|
||||
s = s[i+2:]
|
||||
}
|
||||
}
|
||||
if strings.HasPrefix(s, "// Copyright ") {
|
||||
if i := strings.Index(s, "\n\n"); i >= 0 {
|
||||
s = s[i+2:]
|
||||
|
||||
Reference in new issue
Block a user