Changeset 717

Show
Ignore:
Timestamp:
09/15/06 15:21:16 (2 years ago)
Author:
JeremyRuston
Message:

Added <br> formatter (ticket #167)

Location:
Branches/2.1/core/js
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Branches/2.1/core/js/Deprecated.js

    r545 r717  
    2323                w.nextMatch = lookaheadRegExp.lastIndex; 
    2424                } 
     25} 
     26 
     27// @Deprecated: Use <br> or <br /> instead of <<br>> 
     28config.macros.br.handler = function(place) 
     29{ 
     30        createTiddlyElement(place,"br"); 
    2531} 
    2632 
  • Branches/2.1/core/js/Formatter.js

    r714 r717  
    549549{ 
    550550        name: "lineBreak", 
    551         match: "\\n", 
     551        match: "\\n|<br ?/?>", 
    552552        handler: function(w) 
    553553        { 
  • Branches/2.1/core/js/Macros.js

    r715 r717  
    781781                        this.createCommand(place,c,tiddler,theClass); 
    782782                } 
    783 } 
    784  
    785 config.macros.br.handler = function(place) 
    786 { 
    787         createTiddlyElement(place,"br"); 
    788783} 
    789784