Code Monkey home page Code Monkey logo

Comments (4)

atestu avatar atestu commented on August 16, 2024 1

Yes, adding a new line after the comment works fine!

from caxlsx_rails.

straydogstudio avatar straydogstudio commented on August 16, 2024

Interesting. Did you have a new line at the end of that comment? If you didn't, try adding it.

I can probably fix it by forcing a new line at the end of the insert.

The relevant code is here:

builder << ";xlsx_package.to_stream.string;"

from caxlsx_rails.

dwieringa avatar dwieringa commented on August 16, 2024

I came here to report this same bug. I'm in the process of upgrading an old Rails app, and I just upgraded from axlsx_rails 0.1.5 to caxlsx_rails 0.6.3 and spent a fair amount of time tracking this down.

The issue only seems to exist if the last line in your template is a comment. In this case, render_to_string returns an Axlsx::Worksheet rather than a string.

If you add a blank line after the comment, the issue goes away.

I'm glad to see this is already resolved!

from caxlsx_rails.

straydogstudio avatar straydogstudio commented on August 16, 2024

@dwieringa Thanks for confirming the fix and contributing your comment.

from caxlsx_rails.

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.