Skip to content

Commit

Permalink
fix bug that only included the first line in plain text exports
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-101 committed Aug 24, 2019
1 parent 0bef18e commit e159774
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 80 deletions.
4 changes: 2 additions & 2 deletions source/exports.py
Expand Up @@ -1188,7 +1188,7 @@ def _writeHtmlTable(node, parent, pathDict, level=1):
node.childList[0].formatRef.fieldNames()])
lines.append('</tr><tr>')
for child in node.childList:
cellList = [field.outputText(child, False, True) for field in
cellList = [field.outputText(child, False, False, True) for field in
child.formatRef.fields()]
for i in range(len(cellList)):
startPos = 0
Expand Down Expand Up @@ -1337,7 +1337,7 @@ def _setOldUniqueId(idDict, node):
"""
nodeFormat = node.formatRef
idField = next(iter(nodeFormat.fieldDict.values()))
uId = idField.outputText(node, True, nodeFormat.formatHtml)
uId = idField.outputText(node, True, True, nodeFormat.formatHtml)
uId = uId.strip().split('\n', 1)[0]
maxLength = 50
if len(uId) > maxLength:
Expand Down

0 comments on commit e159774

Please sign in to comment.