bugLibreJS - Bugs: bug #59200, Ability to use /* */ for license...

 
 

bug #59200: Ability to use /* */ for license comments

Submitter:  Andrew Engelbrecht <sudoman>
Submitted:  Mon 28 Sep 2020 07:43:25 PM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 01 May 2022 12:57:21 AM UTC, comment #4: 

Thanks for the explanation.  Seems to me this is very much a good-to-have.  The one-liner will probably break most style guide as the line of code would be too long (including the magnet link etc.)

Yuchen Pei <ycp>
Group administrator
Fri 29 Apr 2022 05:49:11 PM UTC, comment #3: 

A single line would look like this:

/* @license magnet:... / alert('one line'); / @license-end */

Andrew Engelbrecht <sudoman>
Fri 29 Apr 2022 07:16:18 AM UTC, comment #2: 

Perhaps this fixes the issue?

https://git.savannah.gnu.org/cgit/librejs.git/commit/?id=3dafc83753fbabc8d80540e05cf1e374ae73f4fa

It will be included in the next release.

Yuchen Pei <ycp>
Group administrator
Thu 28 Apr 2022 08:35:13 AM UTC, comment #1: 


> it would be great if it were possible to use '/*' and '*/' so scripts can be condensed to live on a single line if need be.


I don't quite understand this bit.

If you have a script like

/* @license magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt Unlicense */

...

/* @license-end */

How do you condense it to a single line?

Yuchen Pei <ycp>
Group administrator
Mon 28 Sep 2020 07:43:25 PM UTC, original submission:  

It is currently possible to use '//' at the beginning of a license comment in a script tag. it would be great if it were possible to use '/*' and '*/' so scripts can be condensed to live on a single line if need be.

this would help make it easier to share code that is copy and paste-able between sites using a single line of code.

thanks! : )

Andrew Engelbrecht <sudoman>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ycp (Posted a comment)
  • -email is unavailable- added by sudoman (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-01 ycp StatusNeed Info None
    2022-05-01 ycp Severity3 - Normal 1 - Wish
    2022-04-28 ycp StatusNone Need Info

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code