diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/word-wrap.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/word-wrap.english.md index 0632459a36..ef61abd3ab 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/word-wrap.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/word-wrap.english.md @@ -6,25 +6,12 @@ challengeType: 5 ## Description
-

-Even today, with proportional fonts and complex layouts, there are still -cases where you need to wrap text at a specified -column. The basic task is to wrap a paragraph of text in a simple way. -Example text: -

-
-Wrap text using a more sophisticated algorithm such as the Knuth and Plass TeX algorithm.
-If your language provides this, you get easy extra credit,
-but you ''must reference documentation'' indicating that the algorithm
-is something better than a simple minimimum length algorithm.
-
-

-Task: +Even today, with proportional fonts and complex layouts, there are still cases where you need to wrap text at a specified column. The basic task is to wrap a paragraph of text in a simple way. +

- Write a function that can wrap this text to any number of characters. - -As an example, the text wrapped to 80 characters should look like the following: -

+## Instructions +
+Write a function that can wrap this text to any number of characters. As an example, the text wrapped to 80 characters should look like the following:
 Wrap text using a more sophisticated algorithm such as the Knuth and Plass TeX
 algorithm. If your language provides this, you get easy extra credit, but you
@@ -33,11 +20,6 @@ than a simple minimimum length algorithm.
 
-## Instructions -
- -
- ## Tests
@@ -66,7 +48,7 @@ tests:
```js -function wrap (text, limit) { +function wrap(text, limit) { return text; } ``` @@ -102,7 +84,7 @@ const firstRow42 = 'Wrap text using a more sophisticated'; ```js -function wrap (text, limit) { +function wrap(text, limit) { const noNewlines = text.replace('\n', ''); if (noNewlines.length > limit) { // find the last space within limit