From d0d854958e924057b72e090b0adfb2b0cef2c3b6 Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Thu, 22 Nov 2012 12:12:08 -0800 Subject: [PATCH 1/2] Fix up method documentation formatting. --- html.go | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/html.go b/html.go index c787e9b..e5cf200 100644 --- a/html.go +++ b/html.go @@ -216,24 +216,22 @@ func (options *Html) BlockCodeNormal(out *bytes.Buffer, text []byte, lang string out.WriteString("\n") } -/* - * GitHub style code block: - * - *

- *              ...
- *              
- * - * Unlike other parsers, we store the language identifier in the
,
- * and don't let the user generate custom classes.
- *
- * The language identifier in the 
 block gets postprocessed and all
- * the code inside gets syntax highlighted with Pygments. This is much safer
- * than letting the user specify a CSS class for highlighting.
- *
- * Note that we only generate HTML for the first specifier.
- * E.g.
- *              ~~~~ {.python .numbered}        =>      

- */
+// GitHub style code block:
+//
+//              

+//              ...
+//              
+// +// Unlike other parsers, we store the language identifier in the
,
+// and don't let the user generate custom classes.
+//
+// The language identifier in the 
 block gets postprocessed and all
+// the code inside gets syntax highlighted with Pygments. This is much safer
+// than letting the user specify a CSS class for highlighting.
+//
+// Note that we only generate HTML for the first specifier.
+// E.g.
+//              ~~~~ {.python .numbered}        =>      

 func (options *Html) BlockCodeGithub(out *bytes.Buffer, text []byte, lang string) {
 	doubleSpace(out)
 

From a25d9a543fcf8ab19865b850f701a5e6e9aa5df2 Mon Sep 17 00:00:00 2001
From: Caleb Spare 
Date: Thu, 22 Nov 2012 12:52:52 -0800
Subject: [PATCH 2/2] Fix html tag ordering in doc string.

---
 html.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html.go b/html.go
index e5cf200..d20aaab 100644
--- a/html.go
+++ b/html.go
@@ -220,7 +220,7 @@ func (options *Html) BlockCodeNormal(out *bytes.Buffer, text []byte, lang string
 //
 //              

 //              ...
-//              
+//
// // Unlike other parsers, we store the language identifier in the
,
 // and don't let the user generate custom classes.