Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+2
-3
@@ -6,7 +6,6 @@ package bidi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
)
|
||||
|
||||
// This implementation is a port based on the reference implementation found at:
|
||||
@@ -248,7 +247,7 @@ func (p *paragraph) determineParagraphEmbeddingLevel(start, end int) level {
|
||||
} else if t.in(FSI, LRI, RLI) {
|
||||
i = p.matchingPDI[i] // skip over to the matching PDI
|
||||
if i > end {
|
||||
log.Panic("assert (i <= end)")
|
||||
panic("assert (i <= end)")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -729,7 +728,7 @@ loop:
|
||||
continue loop
|
||||
}
|
||||
}
|
||||
log.Panicf("invalid bidi code %v present in assertOnly at position %d", t, s.indexes[i])
|
||||
panic(fmt.Errorf("invalid bidi code %v present in assertOnly at position %d", t, s.indexes[i]))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-1815
File diff suppressed because it is too large.
Load diff
-1887
File diff suppressed because it is too large.
Load diff
-1923
File diff suppressed because it is too large.
Load diff
-1955
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.21
|
||||
//go:build !go1.27
|
||||
|
||||
package bidi
|
||||
|
||||
|
||||
+2135
File diff suppressed because it is too large.
Load diff
-1781
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user