anki/ts/editor/editor-toolbar
Damien Elmes e63b4b9927 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 Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
BlockButtons.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
BoldButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
ColorPicker.svelte Fix color defaulting to black 2022-12-11 11:58:21 +10:00
CommandIconButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
EditorToolbar.svelte Give OptionsButton its own ButtonGroup and move it to more prominent position (#2207) 2022-11-23 16:18:29 +10:00
HighlightColorButton.svelte Fix color defaulting to black 2022-12-11 11:58:21 +10:00
icons.ts Add option to shrink editor images by default (#2071) 2022-09-26 09:47:50 +10:00
index.ts Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
InlineButtons.svelte Move all buttons to our custom inline surrounding (#1682) 2022-02-22 22:17:22 +10:00
ItalicButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
LatexButton.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
NotetypeButtons.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
OptionsButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
OptionsButtons.svelte Give OptionsButton its own ButtonGroup and move it to more prominent position (#2207) 2022-11-23 16:18:29 +10:00
RemoveFormatButton.svelte Fix possible unexpected flash of pop-up menu (#2274) 2022-12-19 12:07:47 +10:00
RichTextClozeButtons.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
SubscriptButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
SuperscriptButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
TemplateButtons.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
TextColorButton.svelte Hack around color setting failure in Qt6.5 2023-05-18 16:36:16 +10:00
UnderlineButton.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
WithColorHelper.svelte Fix insert media always insert at the start (on Windows) (#1684) 2022-02-25 10:59:06 +10:00