diff --git a/gateway/gateway.go b/gateway/gateway.go index 00844f58..1b3ec41e 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -258,7 +258,9 @@ func attrEscape(out *bytes.Buffer, src []byte) { } } -// Using rather than
 helpfully keeps Google Translate from trying to process it.
+// Using  rather than 
 keeps Google Translate from trying to process it.
+// BUT it collapses code into one line for some reason, and 
 preserves newlines.
+// #TODO Investigating the 
 combo might work.
 func (*renderer) BlockCode(out *bytes.Buffer, text []byte, info string) {
 	doubleSpace(out)
 
@@ -268,10 +270,10 @@ func (*renderer) BlockCode(out *bytes.Buffer, text []byte, info string) {
 	}
 	lang := info[:endOfLang]
 	if len(lang) == 0 || lang == "." {
-		out.WriteString("")
+		out.WriteString("
")
 	}
 	attrEscape(out, text)
-	out.WriteString("\n")
+	out.WriteString("
\n") } func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrMsgID {