CBLT-42:  do some fancy DOS stuff to retain blank lines

Change-Id: I49cf5c7e6b96181e2672e8a59b8e9799c37f0cac
Reviewed-on: http://review.couchbase.org/37370
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>