On Mon, Apr 1, 2013 at 1:00 AM, Michał Marczyk <michal.marc...@gmail.com>wrote:

> Could you just preprocess the strings passed to re-pattern (or
> patterns if you're getting those as input) to replace literal newlines
> with escape sequences? I'm assuming you don't care about ?x given the
> result you wish to achieve.
>

Thanks for brainstorming with me on this.  This was the strategy I pursued
before Mikhail pointed out about how ?x changes the semantics of literal
newlines.  I don't know how important the ?x is, but I am reluctant to
change the potential semantics of the regular expression for the sake of
printing.

Tonight I tried the strategy of keeping the literal newlines in, but doing
that sort of substitution (replacing literal whitespace with escape
sequences) right before printing.  It seems to be working so far, so I'm
keeping my fingers crossed.

--Mark

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to