dfoyle/OrgPy — pull request #16 by brianhlin (2014-11-14 01:29:34+00:00)
Title: To prevent bugs resulting from user input, remove leading and trailing

whitespace from each line. #15

I saw your post on /r/learnprogramming and as a fan of both org mode and Python, I thought I'd contribute. The built-in strip() function should do everything you're looking for but if you really only want to remove leading space, there's an lstrip() function. You should check out the 'str' and 're' libraries since you'll be doing a lot of string parsing/manipulation.