From c0daf1aaaf6f24ff2c61df2d20642add67cae58f Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 19 Jul 2012 00:59:15 -0400 Subject: [PATCH] adding basic numbered list support to dokuwiki export --- src/node/utils/ExportDokuWiki.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/node/utils/ExportDokuWiki.js b/src/node/utils/ExportDokuWiki.js index bcb21108..d2f71236 100644 --- a/src/node/utils/ExportDokuWiki.js +++ b/src/node/utils/ExportDokuWiki.js @@ -252,7 +252,12 @@ function getDokuWikiFromAtext(pad, atext) if (line.listLevel && lineContent) { - pieces.push(new Array(line.listLevel + 1).join(' ') + '* '); + if (line.listTypeName == "number") + { + pieces.push(new Array(line.listLevel + 1).join(' ') + ' - '); + } else { + pieces.push(new Array(line.listLevel + 1).join(' ') + '* '); + } } pieces.push(lineContent); }