Comments (3)
Currently, the feed gets generated using the clojure.xml/emit function, and it doesn't appear to provide a way to do non-formatted output. Looking at the source here, it looks like the Java XML writer ends up adding the newlines.
One option in your case might be to just strip them from the generated string.
from clj-rss.
Thanks for the feedback and tips, I see what you mean about emit putting in the newlines. Not much you can really do about that, at least in clj-rss. I was thinking of just replacing them but thought there might have been a better way. I ended up just using a str/replace with the regex #"\n" to replace all the newlines with "". That seems to be working. Closing the issue since its not a problem with clj-rss it. Thanks for the assistance!
from clj-rss.
No problem, and I think the regex is definitely the way to go here if you know you don't have any \n characters in the actual text.
from clj-rss.
Related Issues (9)
- Support for content:encoded HOT 9
- Adding an image tag HOT 7
- remve dependency on org.clojure/data.xml HOT 5
- RSS link is not the same as atom rel=self HOT 3
- Attributes to items HOT 2
- :pubDate documentation HOT 3
- It'd be nice to support atom:link HOT 3
- Wrong number of args (0) passed to: core$channel-SINGLEQUOTE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-rss.