Skip to content

Commit

Permalink
pretier
Browse files Browse the repository at this point in the history
  • Loading branch information
david ruty committed Jun 26, 2024
1 parent 9edee1d commit d5ae75f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/quill/src/core/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ function convertListHTML(
const [{ child, offset, length, indent, type }, ...rest] = items;
const [tag, attribute] = getListType(type);
// CLASSNAME FIX
const className=(<HTMLLIElement>child.domNode).className!=""
?` class="${(<HTMLLIElement>child.domNode).className}"`
:"";
const className= (<HTMLLIElement>child.domNode).className != '' ? ` class="${(<HTMLLIElement>child.domNode).className}"` : "";

Check failure on line 341 in packages/quill/src/core/editor.ts

View workflow job for this annotation

GitHub Actions / test / Unit Tests (chromium)

Replace `=·(<HTMLLIElement>child.domNode).className·!=·''·?·`·class="${(<HTMLLIElement>child.domNode).className}"`·:·""` with `·=⏎····(<HTMLLIElement>child.domNode).className·!=·''⏎······?·`·class="${(<HTMLLIElement>child.domNode).className}"`⏎······:·''`

Check failure on line 341 in packages/quill/src/core/editor.ts

View workflow job for this annotation

GitHub Actions / test / Unit Tests (webkit)

Replace `=·(<HTMLLIElement>child.domNode).className·!=·''·?·`·class="${(<HTMLLIElement>child.domNode).className}"`·:·""` with `·=⏎····(<HTMLLIElement>child.domNode).className·!=·''⏎······?·`·class="${(<HTMLLIElement>child.domNode).className}"`⏎······:·''`

Check failure on line 341 in packages/quill/src/core/editor.ts

View workflow job for this annotation

GitHub Actions / test / Unit Tests (firefox)

Replace `=·(<HTMLLIElement>child.domNode).className·!=·''·?·`·class="${(<HTMLLIElement>child.domNode).className}"`·:·""` with `·=⏎····(<HTMLLIElement>child.domNode).className·!=·''⏎······?·`·class="${(<HTMLLIElement>child.domNode).className}"`⏎······:·''`
if (indent > lastIndent) {
types.push(type);
if (indent === lastIndent + 1) {
Expand Down

0 comments on commit d5ae75f

Please sign in to comment.