W2X start value for lists
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@44 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
612de5abff
commit
9627e8b57c
4 changed files with 18 additions and 14 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.0 (2009-09-05)
|
||||
* Version 1.2 (2009-12-15)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -751,14 +751,12 @@ public class TextConverter extends ConverterHelper {
|
|||
// Restart numbering, if required
|
||||
if (counter!=null) {
|
||||
boolean bContinueNumbering = "true".equals(Misc.getAttribute(onode,XMLString.TEXT_CONTINUE_NUMBERING));
|
||||
if (bContinueNumbering) {
|
||||
if (config.xhtmlUseListHack()) {
|
||||
hnode.setAttribute("start",Integer.toString(counter.getValue(nLevel)+1));
|
||||
}
|
||||
}
|
||||
else if (counter!=null) {
|
||||
if (!bContinueNumbering && counter!=null) {
|
||||
counter.restart(nLevel);
|
||||
}
|
||||
if (config.xhtmlUseListHack() && counter.getValue(nLevel)>0) {
|
||||
hnode.setAttribute("start",Integer.toString(counter.getValue(nLevel)+1));
|
||||
}
|
||||
}
|
||||
|
||||
if (onode.hasChildNodes()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue