Anki/ts/editor/editor-toolbar
Damien Elmes 4e8cd4601d Experiment with disabling prettier whitespace sensitivity
Prettier by default tries to preserve whitespace around inline tags,
which can prevent problems such as a space before the period in
'<a>text</a>.':

https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting

Unfortunately only standard HTML block elements are excluded from this
behaviour, so all of our Svelte components are treated the same way, even
if they are block-based, or used in a way where the extra whitespace
doesn't matter. This makes the code somewhat harder to read.

Changing this option does carry the risk that rogue spaces will creep
into our UI in the future as code is formatted, but as there don't appear
to be any such issues with this initial reformat, I think the improved
readability may justify the relatively small risk.
2023-06-01 11:11:26 +10:00
..
AddonButtons.svelte
BlockButtons.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
BoldButton.svelte
ColorPicker.svelte
CommandIconButton.svelte
EditorToolbar.svelte
HighlightColorButton.svelte
icons.ts
index.ts
InlineButtons.svelte
ItalicButton.svelte
LatexButton.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
NotetypeButtons.svelte
OptionsButton.svelte
OptionsButtons.svelte
RemoveFormatButton.svelte
RichTextClozeButtons.svelte
SubscriptButton.svelte
SuperscriptButton.svelte
TemplateButtons.svelte
TextColorButton.svelte Hack around color setting failure in Qt6.5 2023-05-18 16:36:16 +10:00
UnderlineButton.svelte
WithColorHelper.svelte