Skip to content

How do I zprint-str a string with several forms? #264

Answered by kkinnear
PEZ asked this question in Q&A
Discussion options

You must be logged in to vote

You use zprint-file-str, which takes the string of an entire file (or selection). The calling sequence is (zprint-file-str string-to-format identifier options-map). This is the doc-string (which says about what I was going to say):

 (doc zprint-file-str)
-------------------------
zprint.core/zprint-file-str
([file-str zprint-specifier new-options doc-str] [file-str zprint-specifier new-options] [file-str zprint-specifier])
  Take a string, which typically holds the contents of an entire
  file, but doesn't have to, and format the entire string, outputing
  a formatted string.  It respects white space at the top level,
  while ignoring it within all top level forms (unless :indent-only,
  …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PEZ
Comment options

Answer selected by PEZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants