mirror of
https://github.com/documize/community.git
synced 2025-07-26 00:29:47 +02:00
Bump version to 5.11.0
This commit is contained in:
parent
a32510b8e6
commit
510e1bd0bd
370 changed files with 18825 additions and 5454 deletions
6
vendor/github.com/gorilla/css/scanner/scanner.go
generated
vendored
6
vendor/github.com/gorilla/css/scanner/scanner.go
generated
vendored
|
@ -191,7 +191,11 @@ func init() {
|
|||
// New returns a new CSS scanner for the given input.
|
||||
func New(input string) *Scanner {
|
||||
// Normalize newlines.
|
||||
// https://www.w3.org/TR/css-syntax-3/#input-preprocessing
|
||||
input = strings.Replace(input, "\r\n", "\n", -1)
|
||||
input = strings.Replace(input, "\r", "\n", -1)
|
||||
input = strings.Replace(input, "\f", "\n", -1)
|
||||
input = strings.Replace(input, "\u0000", "\ufffd", -1)
|
||||
return &Scanner{
|
||||
input: input,
|
||||
row: 1,
|
||||
|
@ -232,7 +236,7 @@ func (s *Scanner) Next() *Token {
|
|||
// shortcut before testing multiple regexps.
|
||||
input := s.input[s.pos:]
|
||||
switch input[0] {
|
||||
case '\t', '\n', '\f', '\r', ' ':
|
||||
case '\t', '\n', ' ':
|
||||
// Whitespace.
|
||||
return s.emitToken(TokenS, matchers[TokenS].FindString(input))
|
||||
case '.':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue