Fix for margin issue Bug #1192305

...Ensure line margin style is retained between lexer changes.