diff --git a/orgnote/__init__.py b/orgnote/__init__.py index 37a8ca7..cf83091 100644 --- a/orgnote/__init__.py +++ b/orgnote/__init__.py @@ -10,7 +10,7 @@ from __future__ import absolute_import -__version__ = "0.4.0" +__version__ = "0.4.1" def main(): import orgnote.__main__ diff --git a/orgnote/parser.py b/orgnote/parser.py index f78cdc8..4845b42 100755 --- a/orgnote/parser.py +++ b/orgnote/parser.py @@ -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()