|
@@ -287,7 +287,10 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath string) (srcRootBlockID,
|
|
|
|
|
|
box := Conf.Box(targetBoxID)
|
|
|
headingText := getNodeRefText0(headingNode)
|
|
|
- headingText = util.FilterFileName(headingText)
|
|
|
+ if strings.Contains(headingText, "/") {
|
|
|
+ headingText = strings.ReplaceAll(headingText, "/", "_")
|
|
|
+ util.PushMsg(Conf.language(246), 7000)
|
|
|
+ }
|
|
|
|
|
|
moveToRoot := "/" == targetPath
|
|
|
toHP := path.Join("/", headingText)
|