From aca0595a72df3f156ab126c27604402600db8cda Mon Sep 17 00:00:00 2001 From: Craig Casey Date: Thu, 21 May 2020 12:12:05 -0500 Subject: [PATCH] - Removed line that was setting the indent value to 0 for every nested list item. - Added indent class to test for checked/unchecked lists --- src/QuillDeltaToHtmlConverter.ts | 3 --- test/QuillDeltaToHtmlConverter.test.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/QuillDeltaToHtmlConverter.ts b/src/QuillDeltaToHtmlConverter.ts index f157d56..3063c7d 100644 --- a/src/QuillDeltaToHtmlConverter.ts +++ b/src/QuillDeltaToHtmlConverter.ts @@ -206,9 +206,6 @@ class QuillDeltaToHtmlConverter { } _renderListItem(li: ListItem): string { - //if (!isOuterMost) { - li.item.op.attributes.indent = 0; - //} var converter = new OpToHtmlConverter(li.item.op, this.converterOptions); var parts = converter.getHtmlParts(); var liElementsHtml = this._renderInlines(li.item.ops, false); diff --git a/test/QuillDeltaToHtmlConverter.test.ts b/test/QuillDeltaToHtmlConverter.test.ts index 5a04560..2b4b92c 100644 --- a/test/QuillDeltaToHtmlConverter.test.ts +++ b/test/QuillDeltaToHtmlConverter.test.ts @@ -232,7 +232,7 @@ describe('QuillDeltaToHtmlConverter', function () { '
  • hello
  • ', '
  • there
  • ', '
  • man', - '', + '', '
  • ', '', ].join('')