Blueprint Not Copying Correctly

Discussions related to the forums itself. Call for moderators. Trash Posts area.
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Blueprint Not Copying Correctly

Post by IsaacOscar »

When clicking the blueprint on this post viewtopic.php?p=649020#p649020

i.e.
Last edited by IsaacOscar on Wed Dec 04, 2024 1:32 pm, edited 3 times in total.
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Blueprint Not Copying Correctly

Post by IsaacOscar »

It also copies some JavaScript:

Code: Select all

0eNptUdtuwyAM/Rc/0yohl5X8SjUhwmhmjeAISLuqyr/PpJO2h74Y25hzjg8PGP3qloghw/AAtBQSDOcHJJyC8aUXzOxggGjQwyYAw4f7hqHexIsha+JEh5uZKPybldu7ABcyZnRP9L2467DOo4sMJl4BCFgo8RtOmYFxDrVUAu6cyFoeq6pRVS+7rWCb0TvtacKU0SZ9+0SuZ7pimGC4GJ+cAIrIvOYJWAmwtNy1JU9RXyLNOvOKQadMCww5rq5M8GUhf2qc9jju0TDEsVUnFiHrjo+67ZteNlXbn966ffcrs1FkuWH1vljA0PaLGUNwtqj4dbp0i6E8gdnN7MLfnwi4uph2xV0vVatU1yp56ttq234AdraQ/Q== Copy blueprint    var button = document.currentScript.previousElementSibling;    button.id = button.id + '_' + Math.random().toString(36).substr(2, 9);    button.addEventListener("click", function (event) {      var copyTarget = document.createElement("input");      bptext = this.previousElementSibling.innerHTML.replace(/(]+)>)/gi, "");      copyTarget.setAttribute("value", bptext);      document.body.appendChild(copyTarget);      copyTarget.select();      document.execCommand("copy");      document.body.removeChild(copyTarget);      return false;    });
Moreover, everything I write after the blueprint does not show up.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3941
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Blueprint Not Copying Correctly

Post by boskid »

It looks like some weird artifact of using opening bp tag to close bp section.

User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Blueprint Not Copying Correctly

Post by IsaacOscar »

boskid wrote: Wed Dec 04, 2024 1:31 pm It looks like some weird artifact of using opening bp tag to close bp section.
Ahah you're right, there was no slash! Thanks
Post Reply

Return to “This Forum”