latest 20 messages by fuzzybear3965
+
[2016-12-30T05:26:29Z]
fuzzybear3965
It's really quite simple. Instead of trying to use the unicode sequence for carriage return/line feed and rather than by escaping a newline ("\n") I just literally put a newline (hit the enter key) in my replace expression.
+
[2016-12-30T05:25:32Z]
fuzzybear3965
I actually just figured it out, but unfortunately I can't put a post up to help everyone else out.
+
[2016-12-30T05:25:10Z]
fuzzybear3965
https://ecommerce.shopify.com/c/ecommerce-design/t/replacing-newlines-with-liquid-113325
+
[2016-12-30T05:25:04Z]
fuzzybear3965
So, this isn't parsed properly.
+
[2016-12-30T05:25:01Z]
fuzzybear3965
But, the JSON encoding has newlines.
+
[2016-12-30T05:24:48Z]
fuzzybear3965
Because, I'm using a JSON-encoding of my excerpt in my website.
+
[2016-12-30T05:16:55Z]
fuzzybear3965
Does liquid support unicode symbols?
+
[2016-12-30T05:16:49Z]
fuzzybear3965
I'm not having success, though.
+
[2016-12-30T05:16:43Z]
fuzzybear3965
I'm trying to use unicode characters to replace instances of carriage return and line feed.
+
[2016-12-30T05:16:17Z]
fuzzybear3965
Is there a way to do that?
+
[2016-12-30T05:15:48Z]
fuzzybear3965
But, I'm having a tough time with it.
+
[2016-12-30T05:15:40Z]
fuzzybear3965
I'm trying to replace newlines with spaces using liquid.
+
[2016-12-18T09:31:05Z]
fuzzybear3965
Thanks for your help!
+
[2016-12-18T09:31:02Z]
fuzzybear3965
Goodnight!
+
[2016-12-18T09:31:01Z]
fuzzybear3965
Okay, allejo, I'm crashing out.
+
[2016-12-18T09:28:15Z]
fuzzybear3965
It's clean :D.
+
[2016-12-18T09:28:11Z]
fuzzybear3965
It's just one external resource. It's not lumped into the creation of some variable which is assigned the value of some (potentially) massive object.
+
[2016-12-18T09:27:39Z]
fuzzybear3965
Haha, yeah, but with my solution the JSON text stays separate from the logic that's acting on it.
+
[2016-12-18T09:26:44Z]
fuzzybear3965
Then, I'll pull that .json file in with d3.
+
[2016-12-18T09:26:38Z]
fuzzybear3965
That's kind of ugly. I'm going to process a bunch of liquid into a .json file.