fixed alignment and parsing of text field restrictions

@stowellm 
Found two bugs with text field restrictions in writer while I was fixing the other bugs. This fixes them.
Actually this isn't git's fault (it rarely is it turns out). This is symptom of your editor allowing both 'space' tabs and 'tab-character' tabs. You should be able to find an option for this in indentation settings. The just refactor, and you'll never see these problems again. Personally, I recommend 4 spaces for tabs because that is the Oracle Java standard. You can confirm that what I say is true by simply highlighting over the diff where the spaces ought to be.