• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

generic text markup tools


Commit MetaInfo

修訂5ccefa7cf69a8e7ad626f3ffa4cf6d0d7f08b238 (tree)
時間2014-02-06 20:18:08
作者hylom <hylom@hylo...>
Commiterhylom

Log Message

fix ctable

Change Summary

差異

--- a/ctable.json
+++ b/ctable.json
@@ -1,6 +1,7 @@
11 {
22 "usePlugins": [
3- "ctable"
3+ "ctable",
4+ "imagetools"
45 ],
56 "modes": {
67 "global": {
--- a/plugins/ctable.py
+++ b/plugins/ctable.py
@@ -53,14 +53,14 @@ def renderTable(context, args):
5353 break;
5454 rowspan += 1;
5555 if rowspan > 0:
56- attrs["rowspan"] = rowspan
56+ attrs["rowspan"] = rowspan + 1
5757 colspan = 0
5858 for y in range(j+1, width):
5959 if table_rows[i][y] != "":
6060 break;
6161 colspan += 1;
6262 if colspan > 0:
63- attrs["colspan"] = colspan
63+ attrs["colspan"] = colspan + 1
6464
6565 buf += start_tag(tag, attrs) + table_rows[i][j] + end_tag(tag)
6666 buf += "\n</tr>"
@@ -69,6 +69,7 @@ def renderTable(context, args):
6969
7070 def flushTable(context, args):
7171 ret = renderTable(context, args)
72- table_rows = []
72+ table_rows[:] = []
73+ table_attrs.clear()
7374 return ret
7475