Skip to content

Commit c0ea778

Browse files
committed
test: removing resized entry
1 parent 4e48837 commit c0ea778

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ def morerows(self):
23762376
"""Value for the ``morerows`` parameter contained in the entry element."""
23772377
return self._element.get("morerows")
23782378

2379-
def to_rst(self, indent="", links=None, base_url=None, fcache=None):
2379+
def to_rst(self, indent="", max_length=100, links=None, base_url=None, fcache=None):
23802380
"""Return a string to enable converting the element to an RST format."""
23812381

23822382
if self.morerows is not None:
@@ -2395,14 +2395,14 @@ def to_rst(self, indent="", links=None, base_url=None, fcache=None):
23952395
items.append(entry_item)
23962396

23972397
entry_content = " ".join(items)
2398-
entry_content = resize_length(
2399-
entry_content, max_length=100, initial_indent=indent, subsequent_indent=" " * 2
2400-
)
2398+
# entry_content = resize_length(
2399+
# entry_content, max_length=max_length, initial_indent=indent, subsequent_indent=" " * 2
2400+
# )
24012401

24022402
if self.morerows is not None:
24032403
entry_content = f":rspan:`{content}` " + entry_content
24042404

2405-
print(entry_content)
2405+
print(entry_content)
24062406
# to be checked - not working
24072407
return entry_content
24082408

@@ -2415,11 +2415,11 @@ def entry(self):
24152415
"""Return all entry elements found in the row element."""
24162416
return self.find_all("Entry")
24172417

2418-
def to_rst_list(self, indent="", links=None, base_url=None):
2418+
def to_rst_list(self, indent="", max_length=100, links=None, base_url=None):
24192419
"""Return a list to enable converting the element to an RST format."""
24202420
row = []
24212421
for entry in self.entry:
2422-
content = entry.to_rst(links=links, base_url=base_url, indent="")
2422+
content = entry.to_rst(max_length=max_length, links=links, base_url=base_url, indent="")
24232423
content = content.replace("\n", "")
24242424
content = content.replace("\r", "")
24252425
row.append(content)

0 commit comments

Comments
 (0)