mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-02 20:23:11 +02:00
bullet character behaves like * when pasting
This commit is contained in:
parent
ab0b8cc343
commit
66f4162d65
24
h-m-m
24
h-m-m
|
@ -342,13 +342,19 @@ function list_to_map($lines, $root_id, $start_id)
|
|||
$lines[$lid] =
|
||||
mb_ereg_replace
|
||||
(
|
||||
"[\000-\010\013-\037\177]|".BOM
|
||||
,''
|
||||
,str_replace
|
||||
"^( *)•"
|
||||
,'\1*'
|
||||
,
|
||||
mb_ereg_replace
|
||||
(
|
||||
[ "\t", "\n" ]
|
||||
,[ " ", " " ]
|
||||
,$lines[$lid]
|
||||
"[\000-\010\013-\037\177]|".BOM
|
||||
,''
|
||||
,str_replace
|
||||
(
|
||||
[ "\t", "\n" ]
|
||||
,[ " ", " " ]
|
||||
,$lines[$lid]
|
||||
)
|
||||
)
|
||||
)
|
||||
;
|
||||
|
@ -2388,7 +2394,8 @@ function append(&$mm)
|
|||
|
||||
function paste_sub_tree(&$mm, $as_sibling )
|
||||
{
|
||||
if ($as_sibling && $mm['active_node']==$mm['root_id']) return;
|
||||
if ($as_sibling && $mm['active_node']==$mm['root_id'])
|
||||
return;
|
||||
|
||||
if ($as_sibling)
|
||||
$parent_id = $mm['nodes'][ $mm['active_node'] ]['parent'];
|
||||
|
@ -2411,7 +2418,8 @@ function paste_sub_tree(&$mm, $as_sibling )
|
|||
)
|
||||
;
|
||||
|
||||
if ($st==[]) return;
|
||||
if ($st==[])
|
||||
return;
|
||||
|
||||
push_change($mm);
|
||||
$mm['modified'] = true;
|
||||
|
|
Loading…
Reference in a new issue