Bug #33: "Source -> Format" throws out the remainder of a file if some string contant is met inside a block
Make code more simple. Adhere to coding convention.
Merge pull request #36 from xored/issue33

fixed Bug #33: "Source -> Format" throws out the remainder of a file if some string contant is met inside a block