Changeset 9144b6b in rtems-central


Ignore:
Timestamp:
Mar 17, 2020, 2:50:14 PM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
dfca4bc
Parents:
28b8f50
git-author:
Sebastian Huber <sebastian.huber@…> (03/17/20 14:50:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/20 15:27:24)
Message:

content: Make lines for definition item

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/content.py

    r28b8f50 r9144b6b  
    180180        """ Adds a definition item the content. """
    181181        first = True
    182         for line in lines:
     182        for line in _make_lines(lines):
    183183            if first:
    184184                first = False
  • rtemsqual/glossary.py

    r28b8f50 r9144b6b  
    6363        for statement in item["copyrights"]:
    6464            content.register_copyright(statement)
    65         content.add_definition_item(item["glossary-term"],
    66                                     text.split("\n"),
    67                                     indent=1)
     65        content.add_definition_item(item["glossary-term"], text, indent=1)
    6866    content.add_licence_and_copyrights()
    6967    return content
  • tests/test_content.py

    r28b8f50 r9144b6b  
    127127        sc = SphinxContent()
    128128        sc.add_definition_item("x", ["y", "z"])
    129         assert "\nx\n    y\n    z\n" == sc.content
     129        assert sc.content == "\nx\n    y\n    z\n"
     130        sc = SphinxContent()
     131        sc.add_definition_item("a", "\n b\n")
     132        assert sc.content == "\na\n     b\n"
    130133
    131134    def test_license(self):
Note: See TracChangeset for help on using the changeset viewer.