Commits

Cédric Bonhomme  committed 4891515 Merge

Merged branches.

  • Participants
  • Parent commits 41a648e, 87c0bf0

Comments (0)

Files changed (2)

     os.Stdout.WriteString("<link rel=\"stylesheet\" type=\"text/css\" href=\"./style.css\" />\n</head>\n")
     os.Stdout.WriteString("<body>\n")
     os.Stdout.WriteString("<blockquote>\"" + quote.Citation + "\"</blockquote>\n")
-    os.Stdout.WriteString(quote.Author + " - " + quote.Year + "\n")
+    os.Stdout.WriteString(quote.Author)
+    if len(quote.Year) != 0 {
+        os.Stdout.WriteString(" - " + quote.Year + "\n")
+    } else {
+        os.Stdout.WriteString("\n")
+    }
+    os.Stdout.WriteString("<!-- Generated with GoQuotes (https://bitbucket.org/cedricbonhomme/goquotes) -->\n")
     os.Stdout.WriteString("</body>\n</html>")
 }
 
         <author>Oksana Chernyavskaya</author>
         <year>2011</year>
     </quote>
+    <quote>
+        <citation>I'm forever black-eyed, a product of a broken home.</citation>
+        <author>Placebo (Brian Molko)</author>
+        <year>2001</year>
+    </quote>
 </quotes>