mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
util: Run gofmt
This commit is contained in:
parent
31ccfc4039
commit
a57ff2363c
3 changed files with 1538 additions and 1537 deletions
File diff suppressed because it is too large
Load diff
12
util/util.go
12
util/util.go
|
|
@ -145,9 +145,9 @@ func TabWidth(currentPos int) int {
|
||||||
// If the line contains tab characters, paddings may be not zero.
|
// If the line contains tab characters, paddings may be not zero.
|
||||||
// currentPos==0 and width==2:
|
// currentPos==0 and width==2:
|
||||||
//
|
//
|
||||||
// position: 0 1
|
// position: 0 1
|
||||||
// [TAB]aaaa
|
// [TAB]aaaa
|
||||||
// width: 1234 5678
|
// width: 1234 5678
|
||||||
//
|
//
|
||||||
// width=2 is in the tab character. In this case, IndentPosition returns
|
// width=2 is in the tab character. In this case, IndentPosition returns
|
||||||
// (pos=1, padding=2)
|
// (pos=1, padding=2)
|
||||||
|
|
@ -658,9 +658,9 @@ var htmlSpace = []byte("%20")
|
||||||
|
|
||||||
// URLEscape escape the given URL.
|
// URLEscape escape the given URL.
|
||||||
// If resolveReference is set true:
|
// If resolveReference is set true:
|
||||||
// 1. unescape punctuations
|
// 1. unescape punctuations
|
||||||
// 2. resolve numeric references
|
// 2. resolve numeric references
|
||||||
// 3. resolve entity references
|
// 3. resolve entity references
|
||||||
//
|
//
|
||||||
// URL encoded values (%xx) are kept as is.
|
// URL encoded values (%xx) are kept as is.
|
||||||
func URLEscape(v []byte, resolveReference bool) []byte {
|
func URLEscape(v []byte, resolveReference bool) []byte {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build !appengine && !js
|
||||||
// +build !appengine,!js
|
// +build !appengine,!js
|
||||||
|
|
||||||
package util
|
package util
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue