Insist on lots of newlines in the generated HTML
This commit is contained in:
parent
0f8a553b51
commit
058807dd2a
2 changed files with 4 additions and 4 deletions
|
@ -19,8 +19,9 @@ import Data.Yaml (decodeEither')
|
||||||
import Database.Persist.MySQL (MySQLConf (..))
|
import Database.Persist.MySQL (MySQLConf (..))
|
||||||
import Language.Haskell.TH.Syntax (Exp, Name, Q)
|
import Language.Haskell.TH.Syntax (Exp, Name, Q)
|
||||||
import Network.Wai.Handler.Warp (HostPreference)
|
import Network.Wai.Handler.Warp (HostPreference)
|
||||||
|
import Text.Hamlet (HamletSettings(hamletNewlines), NewlineStyle(AlwaysNewlines), defaultHamletSettings)
|
||||||
import Yesod.Default.Config2 (applyEnvValue, configSettingsYml)
|
import Yesod.Default.Config2 (applyEnvValue, configSettingsYml)
|
||||||
import Yesod.Default.Util (WidgetFileSettings, widgetFileNoReload,
|
import Yesod.Default.Util (WidgetFileSettings(wfsHamletSettings), widgetFileNoReload,
|
||||||
widgetFileReload)
|
widgetFileReload)
|
||||||
import qualified Database.MySQL.Base as MySQL
|
import qualified Database.MySQL.Base as MySQL
|
||||||
|
|
||||||
|
@ -112,7 +113,7 @@ instance FromJSON AppSettings where
|
||||||
--
|
--
|
||||||
-- https://github.com/yesodweb/yesod/wiki/Overriding-widgetFile
|
-- https://github.com/yesodweb/yesod/wiki/Overriding-widgetFile
|
||||||
widgetFileSettings :: WidgetFileSettings
|
widgetFileSettings :: WidgetFileSettings
|
||||||
widgetFileSettings = def
|
widgetFileSettings = def { wfsHamletSettings = defaultHamletSettings { hamletNewlines = AlwaysNewlines } }
|
||||||
|
|
||||||
-- | How static files should be combined.
|
-- | How static files should be combined.
|
||||||
combineSettings :: CombineSettings
|
combineSettings :: CombineSettings
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
$newline never
|
$doctype 5
|
||||||
\<!doctype html>
|
|
||||||
\<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
\<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
||||||
\<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
\<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
||||||
\<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
\<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||||||
|
|
Loading…
Reference in a new issue