From 22fd5b54087638da98f509faada9f771903eddc3 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 8 Nov 2018 16:45:22 -0500 Subject: [PATCH] draw: fix Transformer documentation formatting Each span of unindented non-blank lines is converted into a single paragraph. This isn't desired here. Indent the matrix, so that it's converted into a
 block. That also prevents
the previous line from being interpreted as a heading.

Reference: https://godoc.org/go/doc#ToHTML

Fixes golang/go#28683

Change-Id: Ibc5488d5cc66fe3a5f2bbe2fe23628dd08276037
Reviewed-on: https://go-review.googlesource.com/c/148573
Reviewed-by: Brad Fitzpatrick 
---
 draw/scale.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/draw/scale.go b/draw/scale.go
index 3fc30c4..11784d4 100644
--- a/draw/scale.go
+++ b/draw/scale.go
@@ -46,8 +46,8 @@ type Scaler interface {
 //
 // For example, if m is the matrix
 //
-// m00 m01 m02
-// m10 m11 m12
+// 	m00 m01 m02
+// 	m10 m11 m12
 //
 // then the src-space point (sx, sy) maps to the dst-space point
 // (m00*sx + m01*sy + m02, m10*sx + m11*sy + m12).