alexwforsythe / code-blocks

Syntax highlighting for Google Docs
https://www.alexwforsythe.com/code-blocks/
MIT License
693 stars 88 forks source link

Replaces spaces with tabs #222

Open sputnik-adam opened 1 year ago

sputnik-adam commented 1 year ago

When copying code from an editor, or output from a shell, into Google Docs and running Code Blocks against it, groups of spaces are replaced with tabs. This causes the formatted code, which had the correct space counts for things like tabulated terminal output and code indentations, to become messy and misaligned.

This should not be the default behaviour and at the very least should be configurable with a checkbox on the sidebar.