Code Monkey home page Code Monkey logo

Comments (2)

xenocrat avatar xenocrat commented on August 16, 2024

If you have Markdown formatting enabled for blog content (Admin > Settings > Content > Markdown) then you can start a new paragraph in a comment with a double line break when writing the comment.

Alternatively you can modify the theme file themes/sparrow/content/comment.twig and enclose the line {{ comment.body }} in <pre> tags if you want to exactly preserve whitespace in comments, including line breaks.

from chyrp-lite.

dahliadahlia avatar dahliadahlia commented on August 16, 2024

Hello Xenocrat, thank you for the fast response!

I honestly hadn't even thought about wrapping the comments in "pre" tags, that's pretty genius! I'll go that route, since my target audience generally doesn't know what markup is.

Thank you once again for the help. I love Chyrplite and hope it's around for a long time.

Edit: On further poking-around, noticed that if I didn't call the stylesheet, linebreaks were preserved intact. So something in the stylesheet is preventing the comments from keeping their linebreaks. This might not be the route to take but I'll poke some more into the stylesheet.

Edit2: Or it could be a caching issue. I got no clue anymore womp. Disregard.

from chyrp-lite.

Related Issues (20)

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.