Skip to content

Commit

Permalink
Fixes #3: join words of text strings on space, not empty string.
Browse files Browse the repository at this point in the history
  • Loading branch information
danbernier committed Jul 31, 2012
1 parent 4521c59 commit bf8c6ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wordcram/WordCram.java
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,10 @@ public WordCram fromTextFile(String textFilePathOrUrl) {
* @return The WordCram, for further setup or drawing.
*/
//example fromTextString(loadStrings("my.txt"))
//example fromTextString("one", "two", "three")
//example fromTextString("Hello there!")
public WordCram fromTextString(String... text) {
return fromText(new Text(PApplet.join(text, "")));
return fromText(new Text(PApplet.join(text, " ")));
}

/**
Expand Down

0 comments on commit bf8c6ce

Please sign in to comment.