LicensePlist icon indicating copy to clipboard operation
LicensePlist copied to clipboard

Line Breaks Inside a Text Block

Open CleanHit opened this issue 5 years ago • 2 comments

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.

CleanHit avatar Nov 19 '19 15:11 CleanHit

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

https://github.com/alandeguz/LicensePlist/commit/9eaa4fe2a3cf20c83ac3dbc68089c9ef5076f233

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

alandeguz avatar Mar 10 '20 21:03 alandeguz

@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/>.

CleanHit avatar Mar 10 '20 22:03 CleanHit