LicensePlist
LicensePlist copied to clipboard
Line Breaks Inside a Text Block
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.
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 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/>
.