wiki style document editor
Revision | fde32e2a47686281bebb8d47d54a9329e0731869 (tree) |
---|---|
Time | 2014-09-17 23:30:46 |
Author | Hiromichi Matsushima <hylom@Hiro...> |
Commiter | Hiromichi Matsushima |
fix formatter bug: ignore columns after first columns
@@ -19,7 +19,7 @@ var tableMode = { | ||
19 | 19 | action: function (str) { |
20 | 20 | str = str.replace(/^/, '<tr><td>') |
21 | 21 | .replace(/$/, '</td></tr>') |
22 | - .replace(/\t/, '</td><td>'); | |
22 | + .replace(/\t/g, '</td><td>'); | |
23 | 23 | return str; |
24 | 24 | }, |
25 | 25 | flag: false |
@@ -248,7 +248,7 @@ function makeHtmls(lines, imageDir) { | ||
248 | 248 | } |
249 | 249 | html.push(lines[i].replace(/^/, '<tr><td>') |
250 | 250 | .replace(/$/, '</td></tr>') |
251 | - .replace(/\t/, '</td><td>')); | |
251 | + .replace(/\t/g, '</td><td>')); | |
252 | 252 | i++; |
253 | 253 | } |
254 | 254 | html.push('</table>'); |