mirror of
https://code.rocketnine.space/tslocum/gmitohtml.git
synced 2024-11-27 12:48:13 +01:00
Fix link parsing
This commit is contained in:
parent
f8ae52eb7d
commit
11183c0c63
2 changed files with 4 additions and 1 deletions
|
@ -1,2 +1,5 @@
|
|||
1.0.1:
|
||||
- Display navigation bar in pages
|
||||
|
||||
1.0.0:
|
||||
- Initial release
|
||||
|
|
|
@ -70,7 +70,7 @@ func Convert(page []byte, u string) []byte {
|
|||
|
||||
if l >= 6 && bytes.HasPrefix(line, []byte("=>")) {
|
||||
splitStart := 2
|
||||
if line[splitStart+1] == ' ' || line[splitStart+1] == '\t' {
|
||||
if line[splitStart] == ' ' || line[splitStart] == '\t' {
|
||||
splitStart++
|
||||
}
|
||||
split := bytes.SplitN(line[splitStart:], []byte(" "), 2)
|
||||
|
|
Loading…
Reference in a new issue