mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Fixed Issue #7
Former-commit-id: feda371521bfd55016bb0c08b688488275435fee [formerly 028fb636b3e6748539b458f69b5875f08efae4e4] [formerly 7fca1370a29eced4190535758c4fb92d768dd7eb [formerly 1564a9becf48d025104248b37a11fed13702f2b3 [formerlyec605e1b8f
]]] Former-commit-id: e3e135d5b073ef06ee2ff0b1d8637cc5410b7b08 [formerly d53fd362fdcbe37f063e9379052c92a42d80c968] Former-commit-id: 3b5713d7640c5a55c79c5e8fdb2a3489578f0e76 Former-commit-id:8b9009237d
This commit is contained in:
parent
8b01e01445
commit
3e24f03b07
@ -204,7 +204,7 @@ func deleteListItem(c *gin.Context) {
|
||||
// fmt.Println("MATCHED")
|
||||
if strings.Contains(lineString, "~~") == false {
|
||||
// fmt.Println(p.Text, "("+lineString[2:]+"\n"+")", "~~"+lineString[2:]+"~~"+"\n")
|
||||
newText = strings.Replace(newText+"\n", lineString[2:]+"\n", "~~"+lineString[2:]+"~~"+"\n", 1)
|
||||
newText = strings.Replace(newText+"\n", lineString[2:]+"\n", "~~"+strings.TrimSpace(lineString[2:])+"~~"+"\n", 1)
|
||||
} else {
|
||||
newText = strings.Replace(newText+"\n", lineString[2:]+"\n", lineString[4:len(lineString)-2]+"\n", 1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user