Coder Social home page Coder Social logo

Comments (5)

mechatroner avatar mechatroner commented on May 30, 2024 1

Multiline field support was added in version 2.3.0.
To enable multiline fields you need to set "allow_newlines_in_fields": true in the config.
If everything goes well I will think about enabling this by default in future releases.
@o3661606, please let me know if something is not working as you expected.

from sublime_rainbow_csv.

mechatroner avatar mechatroner commented on May 30, 2024

Multiline fields are currently not supported. I will need to investigate if Sublime syntax engine allows to support them, and if it does, this feature can be added. I will post an update.

from sublime_rainbow_csv.

122800 avatar 122800 commented on May 30, 2024

Hello,

This feature didn't seem to work for me at first, so I went digging around and found this commit (5722aee - support quoted_rfc switch), which showed me that the line break handling is only enabled when the separator in use is ; or , (I was using the pipe character |). Is there any reason why this restriction is applied for this feature to be enabled?

At first I thought that the feature was sticking strictly to the CSV definition in RFC-4180, but that officially defines only , as a separator, so this already doesn't seem to be the case.

from sublime_rainbow_csv.

mechatroner avatar mechatroner commented on May 30, 2024

@122800, it is not supported because I was thinking that there is no practical need for this. But your request shows that I was wrong and I just opened a new issue #35. It should be relatively easy to do, just delete the check here:

if policy in ['quoted', 'quoted_rfc'] and selection_text not in [';', ',']:
and test that everything works as expected, the syntax generation logic should already support arbitrary separators.

from sublime_rainbow_csv.

122800 avatar 122800 commented on May 30, 2024

Thanks for the tip, @mechatroner!
I can't guarantee that I'll have the time anytime soon to try this out, but if I get the chance I'll definitely let you know :)

from sublime_rainbow_csv.

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.