Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | for ( var i = 0; i < this.lines.length; i++ ) { |
22 | 22 | text.push( this.lines[i].text ); |
23 | 23 | } |
24 | | - this.flow.setText( text.join( '\n' ) ); |
| 24 | + this.flow.setText( text.join( '' ) ); |
25 | 25 | }; |
26 | 26 | |
27 | 27 | /** |
Index: trunk/parsers/wikidom/demos/es/index.html |
— | — | @@ -22,17 +22,17 @@ |
23 | 23 | $(document).ready( function() { |
24 | 24 | var doc = new Document([ |
25 | 25 | new ParagraphBlock([ |
26 | | - { 'text': "In text display, line wrap is the feature of continuing on a new line when a line is full, such that each line fits in the viewable window, allowing text to be read from top to bottom without any horizontal scrolling." }, |
27 | | - { 'text': "Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single word is longer than a line." }, |
28 | | - { 'text': "It is usually done on the fly when viewing or printing a document, so no line break code is manually entered, or stored.[citation needed] If the user changes the margins, the editor will either automatically reposition the line breaks to ensure that all the text will \"flow\" within the margins and remain visible, or provide the typist some convenient way to reposition the line breaks." }, |
29 | | - { 'text': "A soft return is the break resulting from line wrap or word wrap, whereas a hard return is an intentional break, creating a new paragraph." }, |
| 26 | + { 'text': "In text display, line wrap is the feature of continuing on a new line when a line is full, such that each line fits in the viewable window, allowing text to be read from top to bottom without any horizontal scrolling.\n" }, |
| 27 | + { 'text': "Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single word is longer than a line.\n" }, |
| 28 | + { 'text': "It is usually done on the fly when viewing or printing a document, so no line break code is manually entered, or stored.[citation needed] If the user changes the margins, the editor will either automatically reposition the line breaks to ensure that all the text will \"flow\" within the margins and remain visible, or provide the typist some convenient way to reposition the line breaks.\n" }, |
| 29 | + { 'text': "A soft return is the break resulting from line wrap or word wrap, whereas a hard return is an intentional break, creating a new paragraph.\n" }, |
30 | 30 | ]), |
31 | 31 | new ParagraphBlock([ |
32 | | - { 'text': "The soft returns are usually placed after the ends of complete words, or after the punctuation that follows complete words. However, word wrap may also occur following a hyphen." }, |
33 | | - { 'text': "Word wrap following hyphens is sometimes not desired, and can be avoided by using a so-called non-breaking hyphen instead of a regular hyphen. On the other hand, when using word processors, invisible hyphens, called soft hyphens, can also be inserted inside words so that word wrap can occur following the soft hyphens." }, |
34 | | - { 'text': "Sometimes, word wrap is not desirable between words. In such cases, word wrap can usually be avoided by using a hard space or non-breaking space between the words, instead of regular spaces." }, |
35 | | - { 'text': "OccasionallyThereAreWordsThatAreSoLongTheyExceedTheWidthOfTheLineAndEndUpWrappingBetweenMultipleLines." }, |
36 | | - { 'text': "Text might have \ttabs\t in it too. Not all text will end in a line breaking character" } |
| 32 | + { 'text': "The soft returns are usually placed after the ends of complete words, or after the punctuation that follows complete words. However, word wrap may also occur following a hyphen.\n" }, |
| 33 | + { 'text': "Word wrap following hyphens is sometimes not desired, and can be avoided by using a so-called non-breaking hyphen instead of a regular hyphen. On the other hand, when using word processors, invisible hyphens, called soft hyphens, can also be inserted inside words so that word wrap can occur following the soft hyphens.\n" }, |
| 34 | + { 'text': "Sometimes, word wrap is not desirable between words. In such cases, word wrap can usually be avoided by using a hard space or non-breaking space between the words, instead of regular spaces.\n" }, |
| 35 | + { 'text': "OccasionallyThereAreWordsThatAreSoLongTheyExceedTheWidthOfTheLineAndEndUpWrappingBetweenMultipleLines.\n" }, |
| 36 | + { 'text': "Text might have \ttabs\t in it too. Not all text will end in a line breaking character\n" } |
37 | 37 | ]) |
38 | 38 | ]); |
39 | 39 | var surface = new Surface( $('#es'), doc ); |