Project

General

Profile

Markdown Extra Formatter bugs » redmine_mdx_formatter_js_list_bug.diff

Patch for text entry bug - John Koleszar, 2009-08-18 15:45

View differences:

assets/javascripts/markdown_extra.js
99 99
      fn: {
100 100
        wiki: function() {
101 101
                this.encloseLineSelection('','',function(str) {
102
                  str = str.replace(/r/g,'');
103 102
                  return str.replace(/((?:\n|^)\s*)(\*|\d+\.)?\s*/g,"$1* ");
104 103
                });
105 104
        }
......
113 112
      fn: {
114 113
        wiki: function() {
115 114
                this.encloseLineSelection('','',function(str) {
116
                  str = str.replace(/r/g,'');
117 115
                  return str.replace(/((?:\n|^)\s*)(\*|\d+\.)?\s*/g,"$11. ");
118 116
                });
119 117
        }
(1-1/2)