• Mike Samuel's avatar
    exp/template/html: fix bug in cssEscaper · fc3ce349
    Mike Samuel authored
    cssEscaper escapes using the CSS convention: `\` + hex + optional-space
    
    It outputs the space when the escape could be followed by
    a hex digit to distinguish a "\na" from "\u00aa".
    
    It did not output a space when the escape is followed by a space
    character so did not distinguish "\n " from "\n".
    
    Currently when doing lookahead, it does not distinguish spaces that
    will be escaped later by the same function from ones that will not.
    This is correct but suboptimal.
    
    R=nigeltao
    CC=golang-dev
    https://golang.org/cl/5306042
    fc3ce349
Name
Last commit
Last update
..
Makefile Loading commit data...
attr.go Loading commit data...
clone.go Loading commit data...
clone_test.go Loading commit data...
content.go Loading commit data...
content_test.go Loading commit data...
context.go Loading commit data...
css.go Loading commit data...
css_test.go Loading commit data...
doc.go Loading commit data...
error.go Loading commit data...
escape.go Loading commit data...
escape_test.go Loading commit data...
html.go Loading commit data...
html_test.go Loading commit data...
js.go Loading commit data...
js_test.go Loading commit data...
transition.go Loading commit data...
url.go Loading commit data...
url_test.go Loading commit data...