cmd/utils.go
changeset 146 2c8c8ba13f50
parent 135 55b4a119c7c6
child 185 564d92b54b00
--- a/cmd/utils.go	Fri May 26 12:05:50 2017 +0200
+++ b/cmd/utils.go	Fri May 26 13:41:58 2017 +0200
@@ -41,15 +41,12 @@
 			of = "plain"
 		}
 	}
-	// Override format if a template is provided
-	if of == "plain" {
-		// If the format is plain and there is a template option,
-		// set the format to "template".  Same for "theme".
-		if outputTemplate != "" || outputTemplateFile != "" {
-			of = "template"
-		} else if outputTheme != "" {
-			of = "theme"
-		}
+
+	// Override format if a template or a theme is provided
+	if outputTemplate != "" || outputTemplateFile != "" {
+		of = "template"
+	} else if outputTheme != "" {
+		of = "theme"
 	}
 	return of
 }