Fix an issue with markdown export
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ class ToMarkdown(Tokenizer):
|
|||||||
# Process Text Type
|
# Process Text Type
|
||||||
if tType == self.T_EMPTY:
|
if tType == self.T_EMPTY:
|
||||||
if len(thisPar) > 0:
|
if len(thisPar) > 0:
|
||||||
tTemp = "\n".join(thisPar)
|
tTemp = " \n".join(thisPar)
|
||||||
tmpResult.append("%s\n\n" % tTemp.rstrip(" "))
|
tmpResult.append("%s\n\n" % tTemp.rstrip(" "))
|
||||||
thisPar = []
|
thisPar = []
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -400,15 +400,14 @@ class ToOdt(Tokenizer):
|
|||||||
self._addTextPar("Text_Body", oStyle, "")
|
self._addTextPar("Text_Body", oStyle, "")
|
||||||
|
|
||||||
elif tType == self.T_TEXT:
|
elif tType == self.T_TEXT:
|
||||||
tTemp = tText
|
|
||||||
if parStyle is None:
|
if parStyle is None:
|
||||||
parStyle = oStyle
|
parStyle = oStyle
|
||||||
|
|
||||||
tFmt = " "*len(tTemp)
|
tFmt = " "*len(tText)
|
||||||
for xPos, xLen, xFmt in tFormat:
|
for xPos, xLen, xFmt in tFormat:
|
||||||
tFmt = tFmt[:xPos] + odtTags[xFmt] + tFmt[xPos+xLen:]
|
tFmt = tFmt[:xPos] + odtTags[xFmt] + tFmt[xPos+xLen:]
|
||||||
|
|
||||||
tTxt = tTemp.rstrip()
|
tTxt = tText.rstrip()
|
||||||
tFmt = tFmt[:len(tTxt)]
|
tFmt = tFmt[:len(tTxt)]
|
||||||
thisPar.append(tTxt)
|
thisPar.append(tTxt)
|
||||||
thisFmt.append(tFmt)
|
thisFmt.append(tFmt)
|
||||||
|
|||||||
Reference in New Issue
Block a user