Code Monkey home page Code Monkey logo

Comments (3)

yogthos avatar yogthos commented on June 18, 2024

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.

traviscrist avatar traviscrist commented on June 18, 2024

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.

yogthos avatar yogthos commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.