File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,18 +136,18 @@ def parse_file(
136136def write_file (
137137 file : Union [str , TextIO ],
138138 library : Library ,
139- parse_stack : Optional [Iterable [Middleware ]] = None ,
140- append_middleware : Optional [Iterable [Middleware ]] = None ,
139+ unparse_stack : Optional [Iterable [Middleware ]] = None ,
140+ prepend_middleware : Optional [Iterable [Middleware ]] = None ,
141141 bibtex_format : Optional [BibtexFormat ] = None ,
142142) -> None :
143143 """Write a BibTeX database to a file.
144144
145145 :param file: File to write to. Can be a file name or a file object.
146146 :param library: BibTeX database to serialize.
147- :param parse_stack : List of middleware to apply to the database before writing.
147+ :param unparse_stack : List of middleware to apply to the database before writing.
148148 If None, a default stack will be used.
149- :param append_middleware : List of middleware to append to the default stack.
150- Only applicable if `parse_stack ` is None.
149+ :param prepend_middleware : List of middleware to prepend to the default stack.
150+ Only applicable if `unparse_stack ` is None.
151151 :param bibtex_format: Customized BibTeX format to use (optional)."""
152152 bibtex_str = write_string (
153153 library = library ,
You can’t perform that action at this time.
0 commit comments