• 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

blogger


Commit MetaInfo

Revisión68928cfb62fabc846eadf382d49d81a84627dc87 (tree)
Tiempo2017-10-28 00:05:04
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2283 ls2 plugin: Fix heading listing level

Cambiar Resumen

Diferencia incremental

--- a/plugin/ls2.inc.php
+++ b/plugin/ls2.inc.php
@@ -153,9 +153,9 @@ function plugin_ls2_get_headings($page, & $params, $level, $include = FALSE)
153153 foreach (get_source($page) as $line) {
154154 if ($is_title && preg_match('/^(\*{1,3})/', $line, $matches)) {
155155 $id = make_heading($line);
156- $level = strlen($matches[1]);
156+ $heading_level = strlen($matches[1]);
157157 $id = PLUGIN_LS2_ANCHOR_PREFIX . $anchor++;
158- plugin_ls2_list_push($params, $level + strlen($level));
158+ plugin_ls2_list_push($params, $level + $heading_level);
159159 array_push($params['result'],
160160 '<li><a href="' . $href . $id . '">' . $line . '</a>');
161161 } else if ($is_include &&