• 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

Moxkiriyaプロジェクト事前開発用の作業部屋


Commit MetaInfo

Revisionc36a06b3e18cf09ff464f3a059784e41da19a59f (tree)
Time2018-08-19 11:37:18
AuthorHarold_Andoh <andolloyd@gmai...>
CommiterHarold_Andoh

Log Message

[Moxkiriya7]

  • 表のスタイルの指定に対応
  • 罫線のない表のスタイルを追加

Change Summary

Incremental Difference

--- a/src/com/wiki/standalone/moxkiriya/parser/blockparser/WikiTableBlockParser.java
+++ b/src/com/wiki/standalone/moxkiriya/parser/blockparser/WikiTableBlockParser.java
@@ -18,22 +18,21 @@ import com.wiki.standalone.moxkiriya.parser.inlineparser.WikiThTdInlineParser;
1818
1919 public class WikiTableBlockParser extends WikiBlockParserBase {
2020 /** startタグ */
21- private static final String START_TAG = "<table>";
21+ private static final String START_TAG = "<table";
2222
2323 /** endタグ*/
2424 private static final String END_TAG = "</table>\n";
2525
2626 /** WIKI記法の正規表現文字列 行頭パターン */
2727 private static final String NOTATION_REGEX_LINEHEAD = "^[ \t]*"
28- + Pattern.quote("{|")
29- + ".*";
28+ + Pattern.quote("{|");
3029
3130 /** WIKI記法の正規表現文字列 行末パターン */
3231 private static final String NOTATION_REGEX_LINETAIL = "^[ \t]*"
3332 + Pattern.quote("|}");
3433
3534 /** WIKI記法の正規表現文字列 */
36- public static final String NOTATION_REGEX = NOTATION_REGEX_LINEHEAD;
35+ public static final String NOTATION_REGEX = NOTATION_REGEX_LINEHEAD + ".*";
3736
3837 /** CSSセレクターマップ */
3938 private static final LinkedHashMap<String, String> selectorMap_ = new LinkedHashMap<String, String>() {
@@ -87,15 +86,18 @@ public class WikiTableBlockParser extends WikiBlockParserBase {
8786 for(String key: selectorMap_.keySet()) {
8887 if(style.startsWith(key) == true) {
8988 selector = selectorMap_.get(key);
89+ style = style.substring(style.indexOf(key) + key.length());
9090 break;
9191 }
9292 }
9393
9494 if(selector.isEmpty() != true) {
95+ buf.append(" ");
9596 buf.append(selector);
9697 buf.append("\"" + style + "\"");
9798 }
9899 }
100+ buf.append(">\n");
99101
100102 return "";
101103 }
--- a/src/com/wiki/standalone/moxkiriya/resources/defaultstylesheet.css
+++ b/src/com/wiki/standalone/moxkiriya/resources/defaultstylesheet.css
@@ -37,7 +37,7 @@ code {
3737
3838 table {
3939 border-collapse: collapse;
40- border: solid 2px #c0c0c0;
40+ border: solid 1px #c0c0c0;
4141 }
4242
4343 table th {
@@ -54,5 +54,20 @@ table td {
5454 padding-left: 1em;
5555 padding-right: 1em;
5656 padding-top: 0.5em;
57- padding-bottom: 0.5em;
58-}
\ No newline at end of file
57+ padding-bottom: 0.5em;
58+}
59+
60+table.transparent {
61+ border-collapse: collapse;
62+ border: solid 0px;
63+}
64+
65+table.transparent th, table.transparent td {
66+ background: #ffffff;
67+ border: solid 0px #000000;
68+ padding-left: 1em;
69+ padding-right: 1em;
70+ padding-top: 0.5em;
71+ padding-bottom: 0.5em;
72+}
73+