Python API

Generate selected citation formats through Transpiler-Mate.

Normalize software metadata once for all citation exporters.

clean(value)

Collapse line breaks to prevent line-oriented export injection.

Source code in src/cwl2citation/model.py
54
55
56
def clean(value: str) -> str:
    """Collapse line breaks to prevent line-oriented export injection."""
    return " ".join(value.split())

CFF, BibTeX, RIS, CSL-JSON, and CSL-rendered text exporters.