Skip to content

Commit

Permalink
hotfix: a bug in publish
Browse files Browse the repository at this point in the history
  • Loading branch information
LeslieZhu committed Dec 9, 2014
1 parent 9b65850 commit 7faae90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orgnote/__init__.py
Expand Up @@ -10,7 +10,7 @@

from __future__ import absolute_import

__version__ = "0.4.0"
__version__ = "0.4.1"

def main():
import orgnote.__main__
Expand Down
4 changes: 3 additions & 1 deletion orgnote/parser.py
Expand Up @@ -947,7 +947,9 @@ def do_publish(self,notename=""):
import os.path
publish_list = self.dirs[0]
nopublish_list = self.dirs[1]
notename = os.path.basename(notename).strip(".org").strip(".html")

notename = os.path.basename(notename).replace(".org","").replace(".html","")

publish_line = util.publish_note(notename)

nopublish_data = open(nopublish_list,"r").readlines()
Expand Down

0 comments on commit 7faae90

Please sign in to comment.