fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better placement of the comment tutorial
[fnpeditor.git]
/
src
/
wlxml
/
extensions
/
list
/
list.js
diff --git
a/src/wlxml/extensions/list/list.js
b/src/wlxml/extensions/list/list.js
index
3ee65d4
..
8d88115
100644
(file)
--- a/
src/wlxml/extensions/list/list.js
+++ b/
src/wlxml/extensions/list/list.js
@@
-111,7
+111,7
@@
extension.document.transformations.extractItems = {
extractedItems = [],
succeedingItems = [],
items = list.contents(),
extractedItems = [],
succeedingItems = [],
items = list.contents(),
- listIsNested = list.parent().is('item');
+ listIsNested = list.parent().is('item')
&& !list.parent().isContextRoot()
;
items.forEach(function(item, idx) {
items.forEach(function(item, idx) {
@@
-133,7
+133,7
@@
extension.document.transformations.extractItems = {
reference.after(item);
reference = item;
if(!listIsNested) {
reference.after(item);
reference = item;
if(!listIsNested) {
- item.setClass('');
+ item.setClass('
p
');
}
});
if(precedingItems.length === 0) {
}
});
if(precedingItems.length === 0) {
@@
-143,14
+143,14
@@
extension.document.transformations.extractItems = {
extractedItems.forEach(function(item) {
reference.before(item);
if(!listIsNested) {
extractedItems.forEach(function(item) {
reference.before(item);
if(!listIsNested) {
- item.setClass('');
+ item.setClass('
p
');
}
});
} else {
extractedItems.forEach(function(item) {
reference.after(item);
if(!listIsNested) {
}
});
} else {
extractedItems.forEach(function(item) {
reference.after(item);
if(!listIsNested) {
- item.setClass('');
+ item.setClass('
p
');
}
reference = item;
});
}
reference = item;
});