We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem when using start tag in an ordered list <ol start="2"> - Aspose Cells

Version: Aspose Cells 8.6.0

I’m facing the following problem, I’m trying to assign a ‘start’ property to a ordered list, like the next snippet code:

text : "

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
"

Cell cell //We’re supposing it’s initialized and working fine.
cell.setHtmlString(text);

Actual behavior:
It’s not obeying the ‘start’ tag for the numerated list. It continues the list from 1 as starting value.
Aspose.Cells.Cell [ B2; ValueType : IsString; Value :
1. 1
2. 2
3. 3
4. 4
5. 5
6. 6
7. 7
8. 8
9. 9
10. 10 ]

Expected behavior:
The numerated list must start at 2 since it’s specified in the string.
Aspose.Cells.Cell [ B2; ValueType : IsString; Value :
2. 1
3. 2
4. 3
5. 4
6. 5
7. 6
8. 7
9. 8
10. 9
11. 10 ]

Any workaround? Thanks!

Hi,

Thanks for using Aspose.Cells.

We have tested this issue with the following sample code using the latest version:
Aspose.Cells for Java v8.7.1.4 and were able to observe this issue as shown in the attached screenshot. Start property of an ordered list is not working properly.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-41788 - ‘Start’ property of an ordered list is not working properly

I have also attached the output excel file generated with this code for a reference.

Java
Workbook wb = new Workbook();
Worksheet ws = wb.getWorksheets().get(0);

Cell c = ws.getCells().get(“A1”);

String s = “
<ol dir=“ltr” start=“2”> <li id=”_1458066430665">1 <li id="_1458066430666">2 <li id="_1458066430667">3 <li id="_1458066430668">4 <li id="_1458066430669">5 <li id="_1458066430670">6 <li id="_1458066430671">7 <li id="_1458066430672">8 <li id="_1458066430673">9 <li id="_1458066430674">10
";

c.setHtmlString(s);

wb.save(“output.xlsx”);

Hi,


This is to inform you that the ticket logged earlier as “CELLSJAVA-41788” has been resolved. We will soon share the download link for the fix here after ensuring the quality and incorporating other enhancements and fixes.

Thank you.

The issues you have found earlier (filed as CELLSJAVA-41788) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.