Redmine#3807: document append_to_line_end properly and fix doc bug

See https://cfengine.com/dev/issues/3807