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

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