Skip to content

Commit 7a6912c

Browse files
committed
Fix the doc string of generate-pdf!
It does not take a string but a XML data structure as defined in clojure.data.xml
1 parent a701152 commit 7a6912c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/clj/catalog/layout/fop.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,9 @@
10741074
(xml/indent out))))
10751075

10761076
(defn generate-pdf!
1077-
"Return a pdf in `out` for given `document`, which is a string
1078-
containing xsl-fo XML. The pdf is generated using the [Apache
1077+
"Return a pdf in `out` for given `document`, which is a tree of
1078+
Element records as defined in clojure.data.xml, containing xsl-fo
1079+
XML. The pdf is generated using the [Apache
10791080
Fop](https://xmlgraphics.apache.org/fop/) xsl-fo formatting objects
10801081
processor."
10811082
[document out]

0 commit comments

Comments
 (0)