Changeset - 17c5468a7d47
[Not reviewed]
0 2 0
Brett Smith - 4 years ago 2020-06-12 20:42:54
brettcsmith@brettcsmith.org
reports: ODS links default to using URL as link text.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/reports/core.py
Show inline comments
...
 
@@ -930,3 +930,3 @@ class BaseODS(BaseSpreadsheet[RT, ST], metaclass=abc.ABCMeta):
 
            cell.lastChild.addElement(odf.text.A(
 
                type='simple', href=href, text=text,
 
                type='simple', href=href, text=text or href,
 
            ))
tests/test_reports_spreadsheet.py
Show inline comments
...
 
@@ -516,3 +516,3 @@ def test_ods_writer_multilink_singleton(ods_writer, cell_source, style_name):
 
    anchor = get_child(cell, odf.text.A, type='simple', href=href)
 
    assert get_text(anchor) == (text or '')
 
    assert get_text(anchor) == (text or href)
 

	
...
 
@@ -530,3 +530,3 @@ def test_ods_writer_multilink_cell(ods_writer):
 
        assert child.getAttribute('href') == href
 
        assert get_text(child) == (text or '')
 
        assert get_text(child) == (text or href)
 

	
0 comments (0 inline, 0 general)