Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copyAsStyledText() --> Paste to simple text editor removes new lines #307

Closed
gerdwagner opened this issue Jun 11, 2019 · 2 comments
Closed
Assignees

Comments

@gerdwagner
Copy link

In SQuirreL SQL, which embeds RSyntax, a call to RSyntaxTextArea.copyAsStyledText() leads to a loss of new lines when the copied text is pasted to a simple text editor.

I suppose in RtfToText.endControlWord() the line
if ("par".equals(word))
should be replaced by
if ("par".equals(word) || "line".equals(word))

For reference see
https://sourceforge.net/p/squirrel-sql/bugs/1394/

@bobbylight bobbylight self-assigned this Jun 18, 2019
@bobbylight
Copy link
Owner

Thanks, I'll take a look

@bobbylight bobbylight transferred this issue from bobbylight/RText Aug 2, 2019
@bobbylight
Copy link
Owner

Fixed at master; I'll publish a SNAPSHOT build with this fix to Sonatype when I'm at my main machine. A real 3.0.4 release shouldn't be too far in the future as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants