~tim-ats-d/Tex-setup

f7f73a520f1cf6cdc3e11255dd64bf5d08808fe1 — Tim-ats-d 6 months ago 2d07353 master
Fix a formating tex tag bug.
1 files changed, 3 insertions(+), 3 deletions(-)

M texsetup.py
M texsetup.py => texsetup.py +3 -3
@@ 13,9 13,9 @@ hooked = lambda text: "[%s]" % text


def render_packages(packages: Dict[str, Iterable[str]]) -> str:
    """Return formated \usepackage tag."""
    return  "\n".join(r"\usepackage{%s}%s" % (bracketed(name),
                                              "".join(map(hooked, options)))
    r"""Return formated \usepackage tag."""
    return  "\n".join(r"\usepackage%s%s" % (bracketed(name),
                                            "".join(map(hooked, options)))
                      for name, options in packages.items())