Skip to content

Commit

Permalink
Version 2.1.4: FixBug: Left <!--more--> tag when reedit a post.
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt authored and vim-scripts committed Sep 9, 2011
1 parent 7d610fe commit 8b6d09c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugin/blog.vim
Expand Up @@ -33,7 +33,7 @@
" - A mod of a mod of a mod of Vimpress.
" - A vim plugin fot writting your wordpress blog.
"
" Version: 2.1.3
" Version: 2.1.4
"
" Configure: Add blog configure into your .vimrc (password optional)
"
Expand Down Expand Up @@ -443,7 +443,10 @@ def blog_edit(edit_type, post_id):
strid = str(post_id),
title = data["title"].encode("utf-8"),
slug = data["wp_slug"].encode("utf-8"))
content = (data["mt_text_more"] if "mt_text_more" in data else data["description"]).encode("utf-8")
content = data["description"]
if "mt_text_more" in data:
content += u'<!--more-->' + data["mt_text_more"]
content = content.encode("utf-8")

if edit_type.lower() == "post":
meta_dict["cats"] = ",".join(data["categories"]).encode("utf-8")
Expand Down

0 comments on commit 8b6d09c

Please sign in to comment.