|
Main feature of these changes is that now we properly save the BOM
if the loaded document originally contained one.
Other changes include:
* Updated encoding API functions to also return the BOM:
- encoding.detect
- encoding.detect_string
- encoding.strip_bom
* Return nil on `encoding.get_charset_bom()` if no applicable BOM.
* Updated encoding API Lua docs.
* Introduced `Doc:needs_encoding_conversion()` to simplify conversion logic.
* Introduced three new document bom handling commands:
- doc:disable-bom
- doc:enable-bom
- doc:toggle-bom
* Show BOM if active on status bar.
These changes should fix #214
|