Remove unnecessary condition
Use chevrons for delimiters
Fix regexp

to remove newlines only on the head or tail of strings
Rewrite the rest of test/test_erm_buffer.rb

with assert_parse
Fix style
Clarify a variable name