packages feed

hamlet 1.1.7.6 → 1.1.7.7

raw patch · 3 files changed

+6/−2 lines, 3 files

Files

Text/Hamlet/Parse.hs view
@@ -270,7 +270,7 @@     contentReg InContent = (ContentRaw . return) <$> noneOf "#@^\r\n"     contentReg NotInQuotes = (ContentRaw . return) <$> noneOf "@^#. \t\n\r>"     contentReg NotInQuotesAttr = (ContentRaw . return) <$> noneOf "@^ \t\n\r>"-    contentReg InQuotes = (ContentRaw . return) <$> noneOf "#@^\\\"\n\r"+    contentReg InQuotes = (ContentRaw . return) <$> noneOf "#@^\"\n\r"     tagAttribValue notInQuotes = do         cr <- (char '"' >> return InQuotes) <|> return notInQuotes         fst <$> content cr
hamlet.cabal view
@@ -1,5 +1,5 @@ name:            hamlet-version:         1.1.7.6+version:         1.1.7.7 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>
test/HamletTest.hs view
@@ -482,6 +482,10 @@                 <a href=#{myShow [1, 2]}>bar
             |]
 
+    it "AngularJS attribute values #122" $
+        helper "<li ng-repeat=\"addr in msgForm.new.split(/\\\\s/)\">{{addr}}</li>\n"
+            [hamlet|<li ng-repeat="addr in msgForm.new.split(/\\s/)">{{addr}}|]
+
 data Pair = Pair String Int
 
 data Url = Home | Sub SubUrl