summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xto-wiki/wikiconv2.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py
index b7397f298f..7964c28297 100755
--- a/to-wiki/wikiconv2.py
+++ b/to-wiki/wikiconv2.py
@@ -418,7 +418,7 @@ class XhpFile(ElementBase):
# ignored, we flatten the structure
pass
elif name == 'list':
- self.parse_child(List(attrs, self))
+ self.parse_child(List(attrs, self, False))
elif name == 'meta':
self.parse_child(Meta(attrs, self))
elif name == 'paragraph':
@@ -558,6 +558,8 @@ class TableCell(ElementBase):
elif name == 'bascode':
# ignored, do not syntax highlight in table cells
pass
+ elif name == 'list':
+ self.parse_child(List(attrs, self, True))
else:
self.unhandled_element(parser, name)
@@ -635,7 +637,7 @@ class ListItem(ElementBase):
elif name == 'paragraph':
parser.parse_localized_paragraph(ListItemParagraph, attrs, self)
elif name == 'list':
- self.parse_child(List(attrs, self))
+ self.parse_child(List(attrs, self, False))
else:
self.unhandled_element(parser, name)
@@ -659,9 +661,10 @@ class ListItem(ElementBase):
return text + postfix
class List(ElementBase):
- def __init__(self, attrs, parent):
+ def __init__(self, attrs, parent, isInTable):
ElementBase.__init__(self, 'list', parent)
+ self.isInTable = isInTable
self.type = attrs['type']
try:
self.startwith = int(attrs['startwith'])
@@ -676,6 +679,8 @@ class List(ElementBase):
def get_all(self):
text = ""
+ if self.isInTable:
+ text = '| |\n'
if self.startwith > 0:
text = text + '<ol start="%d">\n'% self.startwith
@@ -748,7 +753,7 @@ class Section(ElementBase):
if parser.follow_embed:
self.embed_href(parser, fname, id)
elif name == 'list':
- self.parse_child(List(attrs, self))
+ self.parse_child(List(attrs, self, False))
elif name == 'paragraph':
parser.parse_paragraph(attrs, self)
elif name == 'section':
@@ -940,7 +945,7 @@ class Case(ElementBase):
(fname, id) = href_to_fname_id(attrs['href'])
self.embed_href(parser, fname, id)
elif name == 'list':
- self.parse_child(List(attrs, self))
+ self.parse_child(List(attrs, self, False))
elif name == 'paragraph':
parser.parse_paragraph(attrs, self)
elif name == 'section':
libreoffice-24-8-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/starmath/inc/unomodel.hxx
AgeCommit message (Expand)Author
2016-10-14loplugin:countusersofdefaultparams in sot..svtoolsNoel Grandin
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-06-07starmath: Make ctors explicitTakeshi Abe
2016-02-09Remove excess newlinesChris Sherlock
2016-01-15starmath: only use WordProcessingML elements in DOCX filesMichael Stahl
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-29com::sun::star->css in starmath,stoc,svgio,svlNoel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-04-21use std::unique_ptr<> to simplify ctor and dtorTakeshi Abe
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-03-10Spare extra call stackTakeshi Abe
2015-01-03drop unused includesTakeshi Abe
2014-10-17coverity#1247645 Uncaught exceptionCaolán McNamara
2014-10-17coverity#1247642 Uncaught exceptionCaolán McNamara
2014-05-27cid#707198 Uncaught exceptionNoel Grandin
2014-05-27cid#707199 Uncaught exceptionNoel Grandin
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2014-02-26Remove visual noise from starmathAlexander Wilms
2013-10-23starmath: fix include guardsThomas Arnhold