PukiWiki/1.4/ちょっと便利に/表組みでnowrapを指定する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*表組みでnowrapを指定する [#x7f7363d]
-[[official:続・質問箱/301]]
**使い方 [#u03b6fd5]
|NOWRAP:改行したくない内容|
**差分 [#xc3cae0a]
- convert_html.php,v 1.18だとこんな感じ? -- &new{2007-0...
convert_html.php
@@ -489,18 +489,21 @@
parent::Element();
$this->style = $matches = array();
- while (preg_match('/^(?:(LEFT|CENTER|RIGHT)|(BG)?COLO...
+ while (preg_match('/^(?:(LEFT|CENTER|RIGHT)|(BG)?COLO...
$text, $matches)) {
if ($matches[1]) {
$this->style['align'] = 'text-align:' . strtolower(...
- $text = $matches[5];
+ $text = $matches[6];
} else if ($matches[3]) {
$name = $matches[2] ? 'background-color' : 'color';
$this->style[$name] = $name . ':' . htmlspecialchar...
- $text = $matches[5];
+ $text = $matches[6];
} else if ($matches[4]) {
$this->style['size'] = 'font-size:' . htmlspecialch...
- $text = $matches[5];
+ $text = $matches[6];
+ } else if ($matches[5]) {
+ $this->style['white-space'] = 'white-space:nowrap;';
+ $text = $matches[6];
}
}
if ($is_template && is_numeric($text))
**コメント [#k6f9457c]
- NOWRAPの本体への取込みを希望します -- &new{2007-08-06 ...
- この方法で出来ました! できれば、取り込み希望です。 --...
- 関連: TOP:, MIDDLE:, BOTTOM: の書式を追加する方法 → [[o...
#comment
終了行:
*表組みでnowrapを指定する [#x7f7363d]
-[[official:続・質問箱/301]]
**使い方 [#u03b6fd5]
|NOWRAP:改行したくない内容|
**差分 [#xc3cae0a]
- convert_html.php,v 1.18だとこんな感じ? -- &new{2007-0...
convert_html.php
@@ -489,18 +489,21 @@
parent::Element();
$this->style = $matches = array();
- while (preg_match('/^(?:(LEFT|CENTER|RIGHT)|(BG)?COLO...
+ while (preg_match('/^(?:(LEFT|CENTER|RIGHT)|(BG)?COLO...
$text, $matches)) {
if ($matches[1]) {
$this->style['align'] = 'text-align:' . strtolower(...
- $text = $matches[5];
+ $text = $matches[6];
} else if ($matches[3]) {
$name = $matches[2] ? 'background-color' : 'color';
$this->style[$name] = $name . ':' . htmlspecialchar...
- $text = $matches[5];
+ $text = $matches[6];
} else if ($matches[4]) {
$this->style['size'] = 'font-size:' . htmlspecialch...
- $text = $matches[5];
+ $text = $matches[6];
+ } else if ($matches[5]) {
+ $this->style['white-space'] = 'white-space:nowrap;';
+ $text = $matches[6];
}
}
if ($is_template && is_numeric($text))
**コメント [#k6f9457c]
- NOWRAPの本体への取込みを希望します -- &new{2007-08-06 ...
- この方法で出来ました! できれば、取り込み希望です。 --...
- 関連: TOP:, MIDDLE:, BOTTOM: の書式を追加する方法 → [[o...
#comment
ページ名: