Compare commits

..

No commits in common. "9cde526f874503032d710e4b3c05ef99d4a12524" and "263d06f6161d9268f1ed0520e7a75a5bb81ad4da" have entirely different histories.

2 changed files with 6 additions and 2 deletions

View File

@ -45,7 +45,7 @@ func EscapeControlReader(reader io.Reader, writer io.Writer, locale translation.
return streamer.escaped, err
}
// EscapeControlStringReader escapes the unicode control sequences in a provided reader of string content and writer in a locale and returns the findings as an EscapeStatus and the escaped []byte. HTML line breaks are not inserted after every newline by this method.
// EscapeControlStringReader escapes the unicode control sequences in a provided reader of string content and writer in a locale and returns the findings as an EscapeStatus and the escaped []byte
func EscapeControlStringReader(reader io.Reader, writer io.Writer, locale translation.Locale, allowed ...rune) (escaped *EscapeStatus, err error) {
bufRd := bufio.NewReader(reader)
outputStream := &HTMLStreamerWriter{Writer: writer}
@ -66,6 +66,10 @@ func EscapeControlStringReader(reader io.Reader, writer io.Writer, locale transl
}
break
}
if err := streamer.SelfClosingTag("br"); err != nil {
streamer.escaped.HasError = true
return streamer.escaped, err
}
}
return streamer.escaped, err
}

View File

@ -263,7 +263,7 @@ export default function initImageDiff() {
height: sizes.max.height * factor + 4
});
const $range = $container.find("input[type='range']");
const $range = $container.find("input[type='range'");
const onInput = () => sizes.image1.parent().css({
opacity: $range.val() / 100
});