Skip to content

Commit

Permalink
Fix weird spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorror committed May 7, 2015
1 parent 215962e commit e334d2b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ Based on our song meta data example above, here's how we would solve our problem
First lets define our strategy file(basic_strat.json):

```js
// basic_strat.json
{
"strategies": {
"Spotify" : { "priorities": { "title": 10 } },
"Lastfm" : { "priorities": { "genre": 3, "releaseDate": 3 } } }
"Lastfm" : { "priorities": { "genre": 3, "releaseDate": 3 } } }
}
```

Expand All @@ -53,6 +54,7 @@ var songModel = {
length: ''
};

// initialize coalesce strategy library
var merger = require('coalesce-strategy')(strategy, songModel);

var items = [];
Expand Down Expand Up @@ -86,7 +88,7 @@ By using *coalesce-strategy* we no longer have to hard code the properties we wi

### Methods

* [`createItem ([id] , item)`](#createItem)
* [`createItem ([id], item)`](#createItem)
* [`merge (items, callback)`](#merge)

### Modifiers
Expand All @@ -103,7 +105,7 @@ By using *coalesce-strategy* we no longer have to hard code the properties we wi
## Methods

<a name="createItem" />
### createItem ([id] , item)
### createItem ([id], item)

Wraps `item` into an object with the specified a `id` which can be understood by the library.

Expand Down Expand Up @@ -268,7 +270,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"strategies": {
"Spotify" : {
Expand Down Expand Up @@ -302,6 +304,7 @@ var songModel = {
length: ''
};

// initialize coalesce strategy library
var merger = require('coalesce-strategy')(strategy, songModel);

var items = [];
Expand Down Expand Up @@ -341,7 +344,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"model": {
"ignore": ["author"]
Expand Down Expand Up @@ -398,7 +401,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"model": {
"useOnly": ["studio", "rating", "revenue"]
Expand Down Expand Up @@ -462,7 +465,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"strategies": {
"npm": {
Expand Down Expand Up @@ -521,7 +524,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"strategies": {
"npm": {
Expand Down Expand Up @@ -555,7 +558,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"model": {
"skipKeysWithFunctionValues": true
Expand Down Expand Up @@ -604,7 +607,7 @@ __Type__
__Examples__

```js
//basic_strat.json
// basic_strat.json
{
"model": { "allowMergingOfEmptyValues": false }
}
Expand Down

0 comments on commit e334d2b

Please sign in to comment.