mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-16 22:36:32 +02:00
fix - dimming the numbers at the beginning
It wasn't formatting them when they were at the same Y as the active node. Now they are, but in return, the rest of those titles are not bold when active.
This commit is contained in:
parent
9ce26f65ba
commit
d53c923049
25
h-m-m
25
h-m-m
|
@ -2648,15 +2648,22 @@ function display(&$mm, $force_center = false)
|
|||
.reset_color
|
||||
.mb_substr($line, $x2)
|
||||
;
|
||||
else // styling the codes when the node is not active
|
||||
$line =
|
||||
mb_ereg_replace
|
||||
(
|
||||
'\b(.?\d+)\. '
|
||||
,dim_on.'\\1. '.dim_off
|
||||
,$line
|
||||
)
|
||||
;
|
||||
|
||||
// styling the codes when the node is not active
|
||||
// it used to be the 'else' of the above condition
|
||||
// because it resets the bold attribute of the active
|
||||
// node. However, it think losing the bold attribute
|
||||
// is better than leaving the numbers unformatted
|
||||
// in the same line as the active node.
|
||||
|
||||
$line =
|
||||
mb_ereg_replace
|
||||
(
|
||||
'\b(.?\d+)\. '
|
||||
,dim_on.'\\1. '.dim_off
|
||||
,$line
|
||||
)
|
||||
;
|
||||
|
||||
// styling the search results
|
||||
|
||||
|
|
Loading…
Reference in a new issue