diff options
Diffstat (limited to 'inline_parser.go')
| -rw-r--r-- | inline_parser.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inline_parser.go b/inline_parser.go index 62287bf..881374e 100644 --- a/inline_parser.go +++ b/inline_parser.go @@ -617,12 +617,16 @@ func (pi *inlineParser) parseFormat(kind int, style int64) bool { el *element idx int + prevc byte + nextc byte hasEnd bool ) _, idx = indexByteUnescape(raw, pi.c) for idx >= 0 { - var prevc, nextc byte + prevc = 0 + nextc = 0 + if idx > 0 { prevc = raw[idx-1] } |
