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

Line Breaks Inside a Text Block #119

Open
CleanHit opened this issue Nov 19, 2019 · 2 comments
Open

Line Breaks Inside a Text Block #119

CleanHit opened this issue Nov 19, 2019 · 2 comments

Comments

@CleanHit
Copy link

CleanHit commented Nov 19, 2019

LicensePlist produces line breaks inside text blocks. For example, the following text blocks have a \n at the end of every line. The line breaks between the text blocks are correct.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Is it possible to prevent this from happening? Because it creates a problem when using this output as input in an HTML page.

@alandeguz
Copy link

I have a branch on which I'm working to add this feature. Here's the important commit.

alandeguz@9eaa4fe

Needs to be cleaned up (by me) before proposing it as a PR.

@CleanHit
Copy link
Author

CleanHit commented Mar 10, 2020

@alandeguz Thanks, right now my code addressees this issue by replacing the \n or \r\n with ' ' and \n\n or \r\n\r\n with <br/> <br/>.

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