r91934 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91933‎ | r91934 | r91935 >
Date:00:46, 12 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added some annotations to start testing the renderer with.
Modified paths:
  • /trunk/parsers/wikidom/demos/es/index.html (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/demos/es/index.html
@@ -24,7 +24,15 @@
2525 $(document).ready( function() {
2626 var doc = new Document([
2727 new ParagraphBlock([
28 - { '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" },
 28+ {
 29+ '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",
 30+ 'annotations': [
 31+ // "In text display" should be bold
 32+ { 'type': 'bold', 'range': { 'start': 0, 'end': 15 } },
 33+ // "line wrap" should be italic
 34+ { 'type': 'italic', 'range': { 'start': 17, 'end': 26 } },
 35+ ]
 36+ },
2937 { '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" },
3038 { '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" },
3139 { '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" },

Status & tagging log