for cross-referencing code/rfc, also linkify the errata

This commit is contained in:
Mechiel Lukkien
2023-11-12 12:20:40 +01:00
parent 6a39f2cc54
commit a87ac99038
2 changed files with 3 additions and 10 deletions

View File

@ -217,7 +217,7 @@ body { font-family: 'ubuntu mono', monospace; }
for i, line := range strings.Split(string(buf), "\n") {
if line == "" {
line = "\n"
} else if len(line) < 80 || strings.Contains(rfc.File, "-") {
} else if len(line) < 80 || strings.Contains(rfc.File, "-") && i > 0 {
line = htmltemplate.HTMLEscapeString(line)
} else {
t := strings.Split(line[80:], " ")