Fix bug when resetting character style to default
Remove trailing newlines in [source] tags
Added support for changing the document's language