Permalink
Browse files

small changes to make the view look nicer in futon

  • Loading branch information...
1 parent 84735cc commit 52c341008f9d59163e1f8f8156276c0474b5aca3 Tristan Sloughter committed Jan 15, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/utils/recipe_utils.erl
@@ -57,4 +57,5 @@ create_json ({Type, List}) ->
{list_to_binary(Type), [[list_to_binary(hd(wf:q(X))) || X <- L] || L <- List]}.
create_user_recipe_view (Username) ->
- couchdb_utils:view_create (?COUCHDB_RECIPES_DB_NAME, Username, <<"javascript">>, [{all, list_to_binary("function(doc) { if (doc.username == '" ++ Username ++ "') emit(null, doc) }")}], []).
+ couchdb_utils:view_create (?COUCHDB_RECIPES_DB_NAME, Username, <<"javascript">>, [{all, list_to_binary("function(doc)\n{\n if (doc.username == \"" ++ Username ++ "\")\n {\n emit(null, doc); \n }\n}")}], []).
+

0 comments on commit 52c3410

Please sign in to comment.