I have a yasnippet snippet for adding the boilerplate to my "daily review" org document. Here's what it looks like:
# key: ndr # name: newdailyreview # -- * Accomplishments :PROPERTIES: :CUSTOM_ID: accomplishments :END - $1 * Goals For Tomorrow :PROPERTIES: :CUSTOM_ID: goals :END - $2 * Observations :PROPERTIES: :CUSTOM_ID: observations :END $0
The problem is that when the property drawer is malformed when printed. I tried preserving white space by adding this at the top:
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
But that didn't make a difference. I then tried setting the property like this:
`(org-set-property "CUSTOM_ID" "report")`
Unfortunately, this actually changes the buffer, which I believe is a deprecated feature of yasnippet.
Is there another way to solve this problem?