• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wiki style document editor


Commit MetaInfo

Revisiónfde32e2a47686281bebb8d47d54a9329e0731869 (tree)
Tiempo2014-09-17 23:30:46
AutorHiromichi Matsushima <hylom@Hiro...>
CommiterHiromichi Matsushima

Log Message

fix formatter bug: ignore columns after first columns

Cambiar Resumen

Diferencia incremental

--- a/text2html/formatters.js
+++ b/text2html/formatters.js
@@ -19,7 +19,7 @@ var tableMode = {
1919 action: function (str) {
2020 str = str.replace(/^/, '<tr><td>')
2121 .replace(/$/, '</td></tr>')
22- .replace(/\t/, '</td><td>');
22+ .replace(/\t/g, '</td><td>');
2323 return str;
2424 },
2525 flag: false
--- a/tools/export/export_parser.js
+++ b/tools/export/export_parser.js
@@ -248,7 +248,7 @@ function makeHtmls(lines, imageDir) {
248248 }
249249 html.push(lines[i].replace(/^/, '<tr><td>')
250250 .replace(/$/, '</td></tr>')
251- .replace(/\t/, '</td><td>'));
251+ .replace(/\t/g, '</td><td>'));
252252 i++;
253253 }
254254 html.push('</table>');