Hello, I've attached a patch that fixes up a few issues I've noticed with org-add-planning-info. The main one (in terms what I actually see when editing Org files) is that, when org-adapt-indentation is nil, closing a repeating TODO heading adds an extra space before the planning info entry when it cycles back to TODO. For example, marking * TODO h SCHEDULED: <2015-06-26 Fri +1w> as DONE inserts an extra space before SCHEDULED: * TODO h SCHEDULED: <2015-07-03 Fri +1w> :PROPERTIES: :LAST_REPEAT: [2015-06-26 Fri 23:38] :END: :LOGBOOK: - State "DONE" from "TODO" [2015-06-26 Fri 23:38] :END: